Преглед изворни кода

Increase Speech Recognition timeout

Tim Burks пре 9 година
родитељ
комит
b02e27db59
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Examples/Speech/Speech/SpeechRecognitionService.swift

+ 1 - 1
Examples/Speech/Speech/SpeechRecognitionService.swift

@@ -41,7 +41,7 @@ class SpeechRecognitionService {
       client = Client(address:HOST, certificates: nil, host: nil)
       call = client.createCall(host: HOST,
                                method: "/google.cloud.speech.v1beta1.Speech/StreamingRecognize",
-                               timeout: 10.0)
+                               timeout: 60.0)
 
       let metadata = Metadata(["x-goog-api-key":API_KEY,
                                "x-ios-bundle-identifier":Bundle.main.bundleIdentifier!])