您的浏览器已禁用 JavaScript。
跳过导航链接
me.chanjar.weixin.mp.api.impl

类 WxMpAiOpenServiceImpl

    • 构造器详细资料

      • WxMpAiOpenServiceImpl

        public WxMpAiOpenServiceImpl()
    • 方法详细资料

      • uploadVoice

        public void uploadVoice(String voiceId,
         AiLangType lang,
         File voiceFile)
         throws WxErrorException 
        从接口复制的说明: WxMpAiOpenService
         提交语音.
         http请求方式: POST
         http://api.weixin.qq.com/cgi-bin/media/voice/addvoicetorecofortext?access_token=ACCESS_TOKEN&format=&voice_id=xxxxxx&lang=zh_CN
         
        指定者:
        uploadVoice 在接口中 WxMpAiOpenService
        参数:
        voiceId - 语音唯一标识
        lang - 语言,zh_CN 或 en_US,默认中文
        voiceFile - 语音文件
        抛出:
        WxErrorException - the wx error exception
      • translate

        public String translate(AiLangType langFrom,
         AiLangType langTo,
         String content)
         throws WxErrorException 
        从接口复制的说明: WxMpAiOpenService
         微信翻译.
         接口调用请求说明
         http请求方式: POST
         http://api.weixin.qq.com/cgi-bin/media/voice/translatecontent?access_token=ACCESS_TOKEN&lfrom=xxx<o=xxx
         
        指定者:
        translate 在接口中 WxMpAiOpenService
        参数:
        langFrom - 源语言,zh_CN 或 en_US
        langTo - 目标语言,zh_CN 或 en_US
        content - 要翻译的文本内容
        返回:
        the string
        抛出:
        WxErrorException - the wx error exception
      • queryRecognitionResult

        public String queryRecognitionResult(String voiceId,
         AiLangType lang)
         throws WxErrorException 
        从接口复制的说明: WxMpAiOpenService
         获取语音识别结果.
         接口调用请求说明
         http://api.weixin.qq.com/cgi-bin/media/voice/queryrecoresultfortext?access_token=ACCESS_TOKEN&voice_id=xxxxxx&lang=zh_CN
         请注意,添加完文件之后10s内调用这个接口
         
        指定者:
        queryRecognitionResult 在接口中 WxMpAiOpenService
        参数:
        voiceId - 语音唯一标识
        lang - 语言,zh_CN 或 en_US,默认中文
        返回:
        the string
        抛出:
        WxErrorException - the wx error exception
跳过导航链接

Copyright © 2024. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /