xftts_fluttify 0.1.1+939e12d copy "xftts_fluttify: ^0.1.1+939e12d" to clipboard
xftts_fluttify: ^0.1.1+939e12d copied to clipboard

outdated

A `xftts` flutter plugin, Powered by `Fluttify` engine.

Logo

讯飞 TTS语音合成组件 #

pub package CI

Dart接口基于Fluttify编译器生成. dartdoc接口文档. CHANGELOG.

技术支持 #

Fluttify网站 #

  • Fluttify编译器自助服务fluttify.com网站已上线, 欢迎各位来试用, 目前网站仍然处于早期阶段, 如果有什么建议可以在技术支持中提issue.
  • 如何使用网站?
    1. 使用github账号登录网站, 我需要知道是谁在使用我的网站;
    2. 填写原生SDK相关的信息, 填写maven坐标和cocoapods名称的时候会进行联网自动补全;
    3. 提交请求, 目前默认获取目标SDK的最新版本来生成插件;
    4. 请求完成后会往github账号关联的邮箱地址发一份邮件, 产物插件便在邮件的附件中;
  • 网站前端使用flutter for web编写(目前产物可能会比较大, 随着flutter官方的优化这些问题会逐步改善), 部署在github pages上, 所以首次访问可能会异常的慢, 请耐心等待或者多试几次.

接外包 #

本人承接外包项目(地图类app优先), 有意者请联系qq 382146139.

DEMO 与 社区 #

Demo QQ群
扫描二维码
或者
点击下载
加入QQ群讨论

安装:

dependencies:
  flutter:
    sdk: flutter
  xftts_fluttify: ^x.x.x

导入:

import 'package:xftts_fluttify/xftts_fluttify.dart';

使用:

/// 初始化 
await XfTTS.init('你的appid');
/// 如果你觉得引擎的日志太多, 可以关闭Fluttify引擎的日志
await enableFluttifyLog(false); // 关闭log

/// 创建合成器对象
Synthesizer synthesizer = await XfTTS.createSynthesizer();
/// 开始语音
await synthesizer.startSpeaking('你要说的话');
/// 暂停语音
await synthesizer.pauseSpeaking();
/// 恢复语音
await synthesizer.resumeSpeaking();
/// 停止语音
await synthesizer.stopSpeaking();
/// 释放资源
await synthesizer.destroy();

iOS Info.plist配置:

<key>NSMicrophoneUsageDescription</key>
<string></string>
<key>NSLocationUsageDescription</key>
<string></string>
<key>NSLocationAlwaysUsageDescription</key>
<string></string>
<key>NSContactsUsageDescription</key>
<string></string>

版本规划 #

版本的语义化 #

- +版本号迭代表示引擎更新,完善引擎能力以及修复引擎bug;
- 小版本号迭代表示无破坏性更新, 包括功能增加和bug修复;
- 次版本号迭代表示有破坏性更新, 包括但不限于接口改动, 类名改动等;
- 主版本号迭代表示底层高德SDK更换;
微信支持 支付宝支持

LICENSE #

Copyright 2020 yohom

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

0
likes
0
pub points
20%
popularity

Publisher

verified publisherfluttify.com

A `xftts` flutter plugin, Powered by `Fluttify` engine.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, foundation_fluttify

More

Packages that depend on xftts_fluttify