-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/TTS with streaming demo #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
.gitignore
Outdated
| .claude | ||
|
|
||
| # Examples | ||
| **/output.wav |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **/output.wav | |
| **/output.wav | |
|
|
||
| async def audio_generator(audio_queue: asyncio.Queue, text: str, voice: str, output_format: str) -> None: | ||
| # Generate speech and stream audio chunks into the queue. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/tts/tts_autoplay/README.md
Outdated
| This producer function takes a string of text, fetches and decodes audio chunks from the Speechmatics TTS API, and converts the audio data into a queue of samples, ready for the audio player to consume. | ||
|
|
||
|
|
||
| # audio_player() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # audio_player() | |
| ### audio_player() | |
examples/tts/tts_autoplay/README.md
Outdated
|
|
||
| This example shows how to use the Speechmatics TTS API to generate audio from text and autoplay it using sounddevice through the systems default audio output device. | ||
| - User must have an audio output device configured on their system for this example to work. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a bit more explanation to this section, like in the suggestion below, to setup the explanation of the two main functions
| ## How it works | |
| There are two main components etc. |
examples/tts/tts_autoplay/README.md
Outdated
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/tts/tts_autoplay/README.md
Outdated
|
|
||
| - `SPEECHMATICS_API_KEY`: Your Speechmatics API key | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/tts/tts_basic.py
Outdated
| @@ -0,0 +1,29 @@ | |||
| import asyncio | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this file, it's already in the readme
TTS with streaming audio example from .py file