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):
187
187
speech_client = AIServiceSpeechClient (config )
188
188
print (f"latest_question: { latest_question } " )
189
189
print (f"latest_answer: { latest_answer } " )
190
+ # text_to_speech = SynthesizeSpeechDetails(
191
+ # text=f" {latest_answer}",
192
+ # is_stream_enabled=True,
193
+ # )
190
194
text_to_speech = SynthesizeSpeechDetails (
191
195
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
+ )
193
205
)
206
+ # list_voices_response = speech_client.list_voices()
207
+ # print(list_voices_response.data)
194
208
response = speech_client .synthesize_speech (synthesize_speech_details = text_to_speech )
195
209
with open ("TTSoutput.wav" , "wb" ) as audio_file :
196
210
audio_file .write (response .data .content )
Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ function App() {
260
260
< br />
261
261
< h5 > Examples...</ h5 >
262
262
< br />
263
- 'Hey DeeBee, Whats is the most popular video game'
263
+ 'Hey DeeBee, Whats is the best video game'
264
264
< br /> - will query LLM directly
265
265
< br />
266
- 'Hey DeeBee, Whats is the most popular video game. Use RAG'
266
+ 'Hey DeeBee, Whats is the best video game. Use RAG'
267
267
< br /> - will use NL2SQL and Vector/RAG search on private database/data
268
268
< br /> < span >
269
269
< button onClick = { ( ) => ( buttonState ? stopSession ( ) : startSession ( ) ) } >
You can’t perform that action at this time.
0 commit comments