bing-speech

Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6)

北城余情 提交于 2019-12-12 06:07:02
问题 i am trying to implement microsoft bing speech api and its working fine for the first 5 times after that when i record my voice i getting exception in console . Exception : Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). when i try to close with AudioContext.close() it shows another error like "Uncaught (in promise) DOMException: Cannot close a context that is being closed or has already

Translating a curl command to R using httr (specifically '--data-binary @')

∥☆過路亽.° 提交于 2019-12-11 07:18:50
问题 I am trying to transcribe some sound files to text using bing speech-to-text. The following command works in command line (using git bash on Windows 10): curl -v -X POST "https://speech.platform.bing.com/speech/recognition/interactive/ cognitiveservices/v1?language=<LANG>&format=detailed" -H "Transfer-Encoding: chunked" -H "Ocp-Apim-Subscription-Key: <MY KEY>" -H "Content-type: audio/wav; codec=audio/pcm; samplerate=16000" --data-binary @<MY .WAV-FILE> I've tried this, but it doesnt work:

Can Microsoft Bing Speech be configured to return only numbers / letters?

懵懂的女人 提交于 2019-12-10 19:29:35
问题 Can the Microsoft Bing Speech API be configured to only return numbers and letters, as opposed to full words? The use case is translating Canadian postal codes. Ex. M 1 B 0 R 3. Microsoft may return "Em 1 Be 0 Are 3" Our audio file is 8000hz and encoded with "M-ULAW". We have no flexibility in changing the sample rate or encoding. We are using the "SMD" scenario, but I can't find any documentation on what this does. Base request URI: https://speech.platform.bing.com/recognize?scenarios=smd

How can I transcribe a speech file with the Bing Speech API in Python?

ぃ、小莉子 提交于 2019-12-10 10:03:12
问题 How can I transcribe a speech file with the Bing Speech API in Python? My speech file is longer than 15 seconds. I'm aware that one may use the Bing Speech REST API in Python. https://gist.github.com/jellis505/973ea6de12508c7c720da4a074e7d065 gives an example in Python 2: #!/usr/bin/env python # -*- coding: utf-8 -*- import requests import httplib import uuid import json class Microsoft_ASR(): def __init__(self): self.sub_key = 'YourKeyHere' self.token = None pass def get_speech_token(self):

How can I transcribe a speech file with the Bing Speech API in Python?

有些话、适合烂在心里 提交于 2019-12-06 02:25:59
How can I transcribe a speech file with the Bing Speech API in Python? My speech file is longer than 15 seconds. I'm aware that one may use the Bing Speech REST API in Python. https://gist.github.com/jellis505/973ea6de12508c7c720da4a074e7d065 gives an example in Python 2: #!/usr/bin/env python # -*- coding: utf-8 -*- import requests import httplib import uuid import json class Microsoft_ASR(): def __init__(self): self.sub_key = 'YourKeyHere' self.token = None pass def get_speech_token(self): FetchTokenURI = "/sts/v1.0/issueToken" header = {'Ocp-Apim-Subscription-Key': self.sub_key} conn =