Giter Site home page Giter Site logo

better_iflytek's Introduction

better_iflytek

A iFLYTEK SDK for flutter.

Install Started

  1. Add this to your pubspec.yaml file:
dependencies:
  better_iflytek: ^0.0.5
  1. Install it
$ flutter packages get

Normal usage

  @override
  void initState() {
    super.initState();

    _iflytek = BetterIflytek();
    _iflytek?.initSDK('appid=$appid');
  }

  CupertinoButton(
    child: Text("start"),
    onPressed: () {
      processEvaluatingResult();
      _iflytek?.startEvaluating("[word]apple");
    },
  ),

  CupertinoButton(
    child: Text("stop"),
    onPressed: () {
      _iflytek?.stopEvaluating();
    },
  ),

Feature

  • ISE

Others

科大迅飞 iOS SDK 文档
科大迅飞 Android SDK 文档

Part of the parameter description.

参数名称 名称 说明
language 语言区域 zh_cn:中文
en_us:英文
category 评测题型 read_syllable(单字,汉语专有)
read_word(词语)
read_sentence(句子)
read_chapter(篇章)
text_encoding 文本编码 输入文本编码格式
固定utf-8
vad_bos 前端点检测 开始录入音频后,音频前面部分最长静音时长
取值范围[0,10000ms]
vad_eos 后端点检测 开始录入音频后,音频后面部分最长静音时长
取值范围[0,10000ms]
sample_rate 采样率 8000 或者 16000
speech_timeout 语音输入超时时间 语音输入超时时间
默认30000
result_level 评测结果等级 complete(完整)
plain(简单)
audio_format 保存音频格式 保存音频格式支持
pcm(iOS,Android)
wav(Android)
ise_audio_path 评测录音保存路径 评测录音保存完整路径(Android)
评测录音保存子路径,子路径拼接在Library/cache后面(iOS)

better_iflytek's People

Contributors

wangyng avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.