Skip to main content

Realtime AI Voice Interface using OpenAI Realtime API

Project description

SpeakNow

SpeakNow is a high-performance, real-time AI voice interface built that runs on either OpenAI Realtime API, Google Gemini Flash Native Audio Live API or Grok Voice. It provides a seamless, low-latency speech-to-speech conversational experience directly in your terminal.

This project is based on and inspired by the push_to_talk_app.py example from the openai-python repository but with lots of features added.

Features

  • Low-Latency Speech-to-Speech: Direct multimodal interaction using the gpt-realtime or gpt-realtime-mini or gemini-2.5-flash-native-audio models for near-instant responses.
  • Real-time Transcription: View live streaming transcripts of your conversation as you speak.
  • Advanced Audio Handling: Save input speech to local WAV files for record-keeping or debugging.
  • Configurable Parameters: Easily adjust system prompts, model names, mode, and transcription options through a built-in TUI settings menu.
  • Professional TUI: A clean, "sticky" interface with persistent headers, footers, and scrollable settings panes using textual.
  • Voice Amplitude Monitor: Monitor the volume of the voice input

Installation

SpeakNow requires Python 3.11 or greater.

To install the latest version from PyPI, run:

pip install speaknow-gui

On Windows ffmpeg is required:

winget install --id=Gyan.FFmpeg

For linux, portaudio19-dev and ffmpeg are required. For example, to install on Ubuntu:

sudo apt install portaudio19-dev ffmpeg

Usage

Configuration

Before running, ensure your OPENAI_API_KEY is set in your environment variables.

In Windows open the Edit Environmnent Variables GUI and add it there.

In Linux:

export OPENAI_API_KEY="your-api-key-here"

SpeakNow provides two main entry points for different use cases. If the script don't work, make sure the scripts path for Python is included in PATH Environment Variable.

1. Standard Application

Launch the main TUI application to start a real-time session:

Windows:

speaknow.exe

Linux:

speaknow

GUI preview Config preview

2. Web Service Mode

Run a server-side version optimized for shared or remote environments:

Windows:

speaknow-serve.exe

Linux:

speaknow-serve

Modes:

The mode can be changed in configuration. Manual mode is triggered by hitting "Start," speaking and then hitting "Stop." to send the audio. Server VAD and uses periods of silence to automatically chunk the audio. Semantic VAD uses a semantic classifier to detect when the user has finished speaking, based on the words they have uttered.

Application Data

Logs, token usage and config file (can also be modifed in the TUI) will be stored here:

  • Windows: %APPDATA%\Speaknow
  • Windows when python is installed from Microsoft Store path will be something like: %LOCALAPPDATA%\Packages\PythonSoftwareFoundation.Python.3.1<....>\LocalCache\Roaming\Speaknow
  • Linux: $HOME/.config/Speanow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speaknow_gui-0.2.0.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

speaknow_gui-0.2.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file speaknow_gui-0.2.0.tar.gz.

File metadata

  • Download URL: speaknow_gui-0.2.0.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for speaknow_gui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3ba3ee10ac753fdb9bf1f62ce27b29bcd099583c7f6809a257310fa07f3519f3
MD5 55f5c553327c2c35d2b09a3d27518c49
BLAKE2b-256 b4ed46e28ff0c4e3559f72c6a85d9ca1b1223350537d462b8467ca239aaf639d

See more details on using hashes here.

File details

Details for the file speaknow_gui-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: speaknow_gui-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for speaknow_gui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa5ea56a58315ffab072476b5c7fcd14bd7fa03a9877c635623c5bc3085db5b
MD5 48822ec25d6c2e4d3e35ab51202d99df
BLAKE2b-256 0dfabff2555e9fa5d1dc92e6e80818e266bdc9e1b72f04ac613892ce370bcb5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page