What it covers
TTSClient: stream speech from text, play it locally or collect the PCM.STTClientandSpeechToTextClient: transcribe a recorded clip, or a live microphone.VoiceAgentClient: a conversation with an agent through your microphone and speakers, with tool calling.- Languages: speech in English, Spanish, Catalan, Galician, Basque, Portuguese, French, Italian and German; recognition in English, Spanish, Portuguese, French, Italian and German.
lokutor.audio_utils: PCM/float conversion, resampling (with anti-aliasing), streaming resampling and RMS helpers.
Installation
Python 3.8 or later.play=True, start_conversation(), SpeechToTextClient.start()), add the audio extra. It needs the PortAudio library first:
Next
- Python Quickstart
- Python API Reference
- Examples:
python/examplesin the SDK repository (simple_tts.py,simple_chat.py,advanced_chat.py)