Use the Iflytek SDK to realize speech recognition-semantic recognition and other functions on Ubuntu

Source: Internet
Author: User

First, refer to the case of official SDK to realize the daily dialogue and control of the machine.

Specific steps:

1. Capture the spoken sound through the microphone, and then get the characters in the voice through online speech recognition.

2. Upload the acquired characters to the semantic recognition of  and get back the information. (JSON format)

3. Parse the returned data through the Cjson library to get the data we want.

4. Upload the obtained results to the  library for speech synthesis and get the synthesized voice data.

5. Output sound through the ALSA library.


The specific code has been uploaded to GitHub.

Https://github.com/qq2216691777/xf_voice


Use the  SDK to realize speech recognition-semantic recognition and other functions on Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.