Older versions of the API:-Googleprovides an on-line speech recognitionAPIinterface, through which theAPIIt can be recognized in Chinese, English and other languages. ApiAddress:http://www.google.com/speech-api/v1/recognize?Xjerr=1&Client=chromium&Lang=zh-cn&maxresults=1-parameter explanation:
xjerr: Error Criteria
Client: Types of clients
lang: Language type to be recognized,en - us is English, Chinese is zh-cn,
maxresults: Maximum number of returned recognition results
-Identify basic processes:
-
- Get raw audio from the audio input device and encode or call the audio file directly.
- the audio POST to the interface address.
- The parse process returns the JSON and come to the result.
-Request Interface
-
- Address: As before
- Request Method: HTTP POST
- Request data: Encoded audio data
- Audio encoding format: wav , Speex or FLAC .
- Audio Sampling frequency: 8000Hz , 11025Hz , 16000Hz , 22050Hz , 24000Hz , 32000Hz , 44100Hz , 48000Hz
-Key Benefits?The speech recognition engine is large and the recognition accuracy is very high, and it is suitable for text speech recognition. Provides speech recognition in multiple languages. ?any platform can be accessed, easy to use. -Main Disadvantages?APInot be open to know the specifics of the development. ?The recognition engine is located on the server side, and the speed of recognition is related to the network quality and the recognition speed is slow. ?The format, size, and duration limit of the audio to be recognized.
new version of the API:
api:地址: https://www.google.com/speech-api/v2/recognize?output=json&lang=en-us&key=yourkey
Mainly about the change:
URL path: The previous V1 becomes V2
Parameters: New output: Outputs type, we generally use JSON
Add key: Need to go to Goole Register account, apply for Apikey, if you do not understand please Google
All other parameters can continue to be used.
Related documents:
Google official Open source code: Https://www.google.com/speech-api/v2/recognize
Google developer key application address: https://console.developers.google.com