Update services/streaming_voice_service.py
Browse files
services/streaming_voice_service.py
CHANGED
|
@@ -130,7 +130,7 @@ class StreamingVoiceService:
|
|
| 130 |
tts_start = time.time()
|
| 131 |
tts_audio_path = self._text_to_speech(response)
|
| 132 |
tts_latency = time.time() - tts_start
|
| 133 |
-
|
| 134 |
# Log latency metrics
|
| 135 |
self._log_latency_metrics({
|
| 136 |
'asr': asr_latency,
|
|
|
|
| 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
|
| 134 |
# Log latency metrics
|
| 135 |
self._log_latency_metrics({
|
| 136 |
'asr': asr_latency,
|