diff --git a/service/llm_service.go b/service/llm_service.go index 6b31dc3..9263a77 100644 --- a/service/llm_service.go +++ b/service/llm_service.go @@ -303,7 +303,7 @@ func (s *LLMService) handleStreamingResponse(req *http.Request, data map[string] fmt.Printf("Error reading audio data: %v\n", err) } else { // Save original audio first - originalPath := fmt.Sprintf("audio/original_%d.wav", time.Now().UnixNano()) + originalPath := fmt.Sprintf("audio/original_%d.wav", time.Now().Unix()) if err := os.WriteFile(originalPath, audioBytes, 0644); err != nil { fmt.Printf("Error saving original audio: %v\n", err) } @@ -315,7 +315,7 @@ func (s *LLMService) handleStreamingResponse(req *http.Request, data map[string] fmt.Printf("Error trimming audio silence: %v\n", err) } else { // Save the trimmed audio as WAV file - audio_path := fmt.Sprintf("trimmed_%d.wav", time.Now().UnixNano()) + audio_path := fmt.Sprintf("trimmed_%d.wav", time.Now().Unix()) outputPath := "audio/" + audio_path if err := s.SaveBase64AsWAV(trimmedAudio, outputPath); err != nil { fmt.Printf("Error saving trimmed WAV file: %v\n", err)