uniapp使用讯飞语音输入接口

voice() {
				var me = this;
				var options = {};
				options.engine = 'iFly';
				options.punctuation = false; // 是否需要标点符号 
				options.timeout = 10 * 1000;
				plus.speech.startRecognize(options, function(s) {
					me.searchText = me.searchText + s;
					uni.navigateTo({
						url: '../search/search?searchdata=' + me.searchText
					});
					me.searchText = ""
					plus.speech.stopRecognize();
				});
			},

 

你可能感兴趣的:(uniapp,uniapp,讯飞语音接口)