-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat:add tts-streaming config and future #5492
base: main
Are you sure you want to change the base?
Conversation
@charli117 Please review this pr as well. |
@crazywoola ic-xu is a colleague of our team, and the version submitted now is the version we are currently using. There is also an optimization point that requires adding a blocking mode output logic for models that are not compatible and do not support streaming tts. We have communicated with each other and merged later |
…e of streaming to implement TTS functionality
It has been extracted as a separate module, and processing logic has been added to the corresponding module in GenerateTask Pipeline. process(). At the same time, the expiration time has been set to be small. At the same time, Redis will not store all message objects, but only a portion of the required data, so the data will not be very large
@@ -79,6 +79,7 @@ export type TextToSpeechConfig = { | |||
enabled: boolean | |||
voice?: string | |||
language?: string | |||
autoPlay?: string |
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.
autoPlay?: string | |
autoPlay?: ttsAutoPlay |
@@ -14,6 +14,7 @@ export type SuggestedQuestionsAfterAnswer = EnabledOrDisabled | |||
export type TextToSpeech = EnabledOrDisabled & { | |||
language?: string | |||
voice?: string | |||
autoPlay?: string |
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.
enum ttsAutoPlay
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.
See comments
Description
Add TTS streaming configuration and feature support, add text to speech in the feature configuration options, click on configure to start
Fixes #5251
Type of Change
How Has This Been Tested?
Simply configure the streaming TTS option and test it