-
-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Text to speech #5062
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?
Text to speech #5062
Conversation
0xi4o
commented
Aug 13, 2025
- Adds a "Text to Speech" tab in flow configuration
- Users can configure two TTS providers — OpenAI and Eleven Labs
- Configure credentials
- Select available voices for each provider
- Play a test audio for each voice
- Option to automatically play audio after receiving a message from chatflow/agentflow
- Show speaker button below bot messages
- Clicking speaker button will use the provided TTS configuration to convert text to audio
- If "Automatically play audio" is enabled, play audio automatically
… tts events are sent
}) | ||
} | ||
|
||
const handleTTSStart = (data) => { |
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.
When audio is auto played, the STOP button for chat doesnt go away unless the audio has finished playing:

As a user, I would've thought clicking that will stop the audio playing as well, but in fact nothing really happens, it just keep spinning.
Expected:
1.) Either clicking the chat STOP button will stop the audio play OR
2.) Just have the audio STOP button:
@0xi4o For the test audio, I changed it to this: |
- Updated the text-to-speech controller to select the active provider based on status instead of the first available provider - Added audio waveform controls and test audio functionality in the TextToSpeech component, allowing users to play and pause test audio - Integrated Autocomplete for voice selection in the TextToSpeech component - Implemented TTS action management in ChatMessage to prevent auto-scrolling during TTS actions
I've fixed: 1:
2:
3:
4:
5:
6:
|
…fore playing new audio or starting a new TTS stream
…' provider, ensuring only valid providers are considered for text-to-speech functionality.