We don't want to use interim results and want to get the final transcript earlier. But deepgram holds our transcript.
Parameters for deepgram:
params = {
"model": "phonecall", # Specialized model for phone calls
"punctuate": "true",
"language": "en-US",
"encoding": "mulaw", # Twilio's audio encoding
"sample_rate": "8000", # Twilio's sample rate
"channels": "1", # Mono audio
"interim_results": "false", # Get partial results
"smart_format": "true"
}
Example: Why did it hold the last final transcript if it was spoek together?
2025-02-18 11:42:22 [INFO] [935feee0] Pause detected - No audio for 1101.709ms (server.py:297)
2025-02-18 11:42:22 [INFO] [935feee0] Pause detected - FINAL transcript: Loan care. Year end irs 1,098 tax forms will be mailed by January 31 and can now be viewed online by logging into your account at like the Servicing 1,098 forms will not be issued for interest paid amounts less than $600 This call may be monitored and recorded for quality purposes. In order to direct your call, please help me find your account. Press 1 to enter your loan number. Press 2 to enter your Social security number. Press 3 To your tax Id number. Press 4 (server.py:300)
2025-02-18 11:42:29 [INFO] [935feee0] Pause detected - No audio for 1156.783ms (server.py:297)
2025-02-18 11:42:29 [INFO] [935feee0] Pause detected - FINAL transcript: If you do not of this information, (server.py:300)