datbkpro commited on
Commit
7aa891c
·
verified ·
1 Parent(s): 67bfcbb

Update services/streaming_voice_service.py

Browse files
services/streaming_voice_service.py CHANGED
@@ -127,7 +127,7 @@ class StreamingVoiceService:
127
  response = self._generate_ai_response(transcription)
128
  rag_latency = time.time() - rag_start
129
  # Tạo TTS
130
- tts_start = time.time()
131
  tts_audio_path = self._text_to_speech(response)
132
  tts_latency = time.time() - tts_start
133
  total_latency = time.time() - total_start_time
 
127
  response = self._generate_ai_response(transcription)
128
  rag_latency = time.time() - rag_start
129
  # Tạo TTS
130
+ tts_start = time.time()
131
  tts_audio_path = self._text_to_speech(response)
132
  tts_latency = time.time() - tts_start
133
  total_latency = time.time() - total_start_time