fl_kdxf_sst_rt
As shown in the figure below:
Welcome to my personal website:www.sshlearning.cn
Welcome to my github and invite you to build more:github.com/ssh199956
Welcome to my personal blog:blog.sshlearning.cn
Welcome to follow my document content:data.sshlearning.cn
Welcome to the static e-commerce website made during my study:shenfeng.sshlearning.cn
Getting started
A Flutter plugin that supports KDXF for Streaming Speech Recognition , suitable for Android, iOS and other platforms.
Usage
//'Attention, set this content first before using all content'
setKDXFInfo("", "", "", "");
class WsWidgetPage extends StatefulWidget {
@override
_WsWidgetPageState createState() => _WsWidgetPageState();
}
class _WsWidgetPageState extends State<WsWidgetPage>
with KDXFBaseSpeechRecognitionMixin {
@override
void initState() {
super.initState();
//this is your keys of kdxf.
setKDXFInfo("", "", "", "");
KDXFInit();
}
@override
void dispose() {
KDXFDispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('讯飞语音转文字测试'),
),
body: Column(
children: [
ElevatedButton(
onPressed: () async {
await SoundRecord.startListening();
updateMsg = "录音中..";
},
child: Text('开始录音'),
),
ElevatedButton(
onPressed: KDXFStopListening,
child: Text('停止录音'),
),
Container(
height: 20,
),
Center(child: Text(showMsg)),
],
),
);
}
}
Libraries
- flutter_kdxf_sst_nrt
- flutter_kdxf_sst_nrt_method_channel
- flutter_kdxf_sst_nrt_platform_interface
- flutter_kdxf_sst_nrt_web
- kdxf_base_plugin_page
- kdxf_speech/kdxf_plugins/bean/response_data_entity
- kdxf_speech/kdxf_plugins/generated/json/base/json_convert_content
- kdxf_speech/kdxf_plugins/generated/json/base/json_field
- kdxf_speech/kdxf_plugins/generated/json/response_data_entity_helper
- kdxf_speech/kdxf_plugins/utils/base_kdxf
- kdxf_speech/kdxf_plugins/utils/sound_manage
- kdxf_speech/kdxf_plugins/utils/xf_manage
- kdxf_speech/kdxf_plugins/utils/xf_utils
- main
- siri_wave/siri_wave