GithubHelp home page GithubHelp logo

Comments (2)

breakstring avatar breakstring commented on June 12, 2024 1

不能直接用于微信小程序的客户端脚本里。

  1. 讯飞WebAPI必须要设定IP地址白名单才能用
  2. 我只在NodeJS的环境下测试过,不太确定是否所有API在微信小程序的脚本中可用。

所以,要在微信小程序中使用的话,如果你的微信小程序的服务端使用NodeJS的话,我觉得问题不大。也就是微信端把数据发送到你的服务端,服务端再转发到讯飞的服务器来请求。而不是直接从微信小程序的脚本中直接请求讯飞的服务器。

from xunfeisdk.

Powerfan avatar Powerfan commented on June 12, 2024

@breakstring 谢谢谢谢!

按照讯飞的文档忙活了一晚上部署在小程序(无服务端)里,才发现讯飞WebAPI是不支持在客户端使用的

from xunfeisdk.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.