How can I transcribe a speech file with the Bing Speech API in Python?
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 =