Is there a way to set interim_results in the url String? #264
-
I am trying to make api call on my iOS client side using the tutoruial: https://deepgram.com/learn/ios-live-transcription I want to enable DeepGram to return word-by-word, instead of a whole sentence. I realized this can be done using the "interim_result = true" param but I do not know if I can add this param in url call. I do not want to do this on the server side so that is why I am stuck. Please help. Example of what I want to achieve: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @AndyWangLYN, you're correct that you can append that See the full feature documentation at Interim Results. |
Beta Was this translation helpful? Give feedback.
Hi @AndyWangLYN, one tip based on the iOS tutorial code - it contains the line
if response.isFinal && !transcript.isEmpty {
By definition, interim results are not final, so you can alter the logic, for instance to
if !transcript.isEmpty {
This will allow you to parse the interim results as they become available!