better_iflytek 0.0.5 copy "better_iflytek: ^0.0.5" to clipboard
better_iflytek: ^0.0.5 copied to clipboard

A new Flutter plugin.

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)
1
likes
120
pub points
8%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter, path_provider, tuple

More

Packages that depend on better_iflytek