Umm... So it this the only way to archive the goal by implementing like
this?
eval("var " + myString + " = new speech.SpeechClient();");
Fabio Santos於 2020年2月21日星期五 UTC+8上午1時58分36秒寫道:
>
> Wow, this is pretty recent, I'm also on the same boat right. Everything
> working flawlessly except for this, I might have to create a JS Object like
> {[userKey]: new speech.SpeechClient} as to add all users as they need to
> talk.
>
> On Thursday, February 20, 2020 at 2:53:50 AM UTC, Tom Chiang wrote:
>>
>>
>> I have built a web based Speech-to-Text application with Google
>> Speech-to-Text API.
>>
>> The application flow:
>>
>> 1. Get audio stream from browser
>> 2. Stream audio data to a speech recognition service and get real
>> time results as our user talks
>>
>> [image: 0_MJ6ydPicL3CrJ6zg.png]
>>
>> I have referenced the sample code
>> <https://github.com/googleapis/nodejs-speech> in my application, the
>> streamingRecognize request works perfectly with a signal client call,
>> and my server can receive the interim-transcription result from Google
>> Speech API. However, when there are more then one client call
>> streamingRecognize simultaneously, Google Speech API will get stuck. So,
>> may I know how to handle more than one streamingRecognize request
>> concurrently? Do I need to create another client to process the second
>> streamingRecognize request? Thanks.
>>
>> Back-end server specifications:
>>
>> - NodeJS
>> - Socket.io
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/7aa577ef-79b1-4967-9f29-8bf1d7468aad%40googlegroups.com.