Speech Recognition English

免费增值
通过 HiVoicy | 已更新 14 days ago | Artificial Intelligence/Machine Learning
人气

0.2 / 10

延迟

98ms

服务等级

0%

Health Check

N/A

README

Speech Recognition #voice to text

-HiVoicy English Speech Recognition can convert any English voice to text.

-Supported file types: mp3, Ogg, Wav, m4a and WMA.
-Max length can be 1 minute.

Python Quick Start

  import requests

  api_url = 'https://speech-recognition-english.p.rapidapi.com/api/asr'
  api_key = 'Your API Key'

  sound_path = 'Sound directory path'
  sound_name = 'Sound file name'

  files = {'sound': (sound_name, open(sound_path + sound_name, 'rb'), 'multipart/form-data')}
  header = {
      "x-rapidapi-host": "speech-recognition-english.p.rapidapi.com",
      "x-rapidapi-key": api_key
      }
  response = requests.post(api_url, files=files, headers=header)

####JSON output

{
  "statusCode": 200,
  "statusMessage": "OK",
  "hasError": false,
  "request": {
    "conversationID": "558ac9e361474095b3932766e12271d5",
    "linkFile": "",
    "packetID": "13e814954f804c74a1c652813013650e",
    "timeStamp": 132492249210298480,
    "userID": "b12ee63a8ae74ca990449a17e8e71fac"
  },
  "data": {
    "phonetic": "Phonetic of text",
    "text": "Your text of voice ",
    "duration": 2
  }
}
关注者:49
资源:
产品网站
API 创建者:
Rapid account: Hi Voicy
HiVoicy
hivoicy-vxmKOG2vl
登录并给 API 打分
打分:5 - 投票:2