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();
});
},