deepgram / amazon-connect-integration

Enables transcribing Amazon Connect calls with Deepgram
MIT No Attribution
2 stars 0 forks source link

Support Streaming ? #3

Closed jays0606 closed 6 months ago

jays0606 commented 6 months ago
  1. is there a way to receive the results realtime by streaming ?
    • currently , only the final transcript is received (is_final=True)

I want the fastest possible stt result. Any ideas to optimize ?

@RyanChimienti

jays0606 commented 6 months ago

i found a solution.

setting enforceRealtime = False makes the result much faster.

the result is fetched almost real-time.

RyanChimienti commented 6 months ago

Hey @jays0606 , you're right, enforceRealtime should always be False unless you're load testing. A couple of other tips to reduce latency:

jays0606 commented 6 months ago

Thanks for the reply.

Also, is there a way i can receive only FromCustomer audio input ?? Currently it is by default FromCustomer, ToCustomer 2 channels. Is only receiving FromCustomer possible? Will this also improve latency?

Thank you @RyanChimienti

=> this i've also accomplished.

Just modify code to receive on FromCustomer audio, and change the deepgram api queryString to

queryString.append("encoding=linear16&sample_rate=8000");