File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
python-realtimespeech-selectai/src
react-client/react-client/src Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,24 @@ def doTTSAndAudio2Face(latest_answer, latest_question):
187187 speech_client = AIServiceSpeechClient (config )
188188 print (f"latest_question: { latest_question } " )
189189 print (f"latest_answer: { latest_answer } " )
190+ # text_to_speech = SynthesizeSpeechDetails(
191+ # text=f" {latest_answer}",
192+ # is_stream_enabled=True,
193+ # )
190194 text_to_speech = SynthesizeSpeechDetails (
191195 text = f" { latest_answer } " ,
192- is_stream_enabled = True ,
196+ is_stream_enabled = False ,
197+ configuration = oci .ai_speech .models .TtsOracleConfiguration (
198+ model_family = "ORACLE" ,
199+ # Brian Annabelle Bob Stacy Phil Cindy Brad
200+ model_details = oci .ai_speech .models .TtsOracleTts2NaturalModelDetails (voice_id = "Brian" ),
201+ speech_settings = oci .ai_speech .models .TtsOracleSpeechSettings (
202+ speech_mark_types = ["WORD" ]
203+ ),
204+ )
193205 )
206+ # list_voices_response = speech_client.list_voices()
207+ # print(list_voices_response.data)
194208 response = speech_client .synthesize_speech (synthesize_speech_details = text_to_speech )
195209 with open ("TTSoutput.wav" , "wb" ) as audio_file :
196210 audio_file .write (response .data .content )
Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ function App() {
260260 < br />
261261 < h5 > Examples...</ h5 >
262262 < br />
263- 'Hey DeeBee, Whats is the most popular video game'
263+ 'Hey DeeBee, Whats is the best video game'
264264 < br /> - will query LLM directly
265265 < br />
266- 'Hey DeeBee, Whats is the most popular video game. Use RAG'
266+ 'Hey DeeBee, Whats is the best video game. Use RAG'
267267 < br /> - will use NL2SQL and Vector/RAG search on private database/data
268268 < br /> < span >
269269 < button onClick = { ( ) => ( buttonState ? stopSession ( ) : startSession ( ) ) } >
You can’t perform that action at this time.
0 commit comments