WeChat public platform Message Interface Development (40) speech recognition

Source: Internet
Author: User
Public platform development mode speech recognition public platform Message Interface speech recognition

Public platform development model Speech recognition Public PlatformMessage Interface speech recognition


The speech recognition process on the public platform is quite complex.


1. obtain voice file data

Currently, you can obtain voice files through simulated logon.


II. speech encoding

Generally, the interface requires a specific encoding, so transcoding is required.


3. submit data to a third-party interface

Obtains the recognition result and confidence level, and obtains the highest value.

 "; Foreach ($ data ['hybrid'] as $ I) echo"
  • ". $ I ['utterance ']."
  • "; Echo"";} Else {echo"Identify errors";}?>


    IV. semantic recognition

    You can use word segmentation to analyze the results through syntax rules.


    V,


    Others: Text to Speech

    Google Text to Speech API

    Base URL: http://translate.google.com/translate_tts
    It converts written words into audio. It acceptsGETrequests.

    GET

    Q
    The query string to convert to audio

    Tl
    Translation language, for example, arfor Arabic, oren-usfor English

    Ie
    Encoding format, use defaultUTF-8

    ExamplesThis is an example for Arabic "?????? ????? "
    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85&tl=ar
    This is an example for English "Hello World"
    http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us
    Public Platform Navigation

    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.