Skip to content

Instantly share code, notes, and snippets.

@cafedeaqua
cafedeaqua / voice_input_segment.js
Created May 18, 2017 22:40
How to use SpeechToText and how to know N voice recognition text from your voice
var speechText;
/**
* The callback to prepare a segment for play.
* @param {string} trigger The trigger type of a segment.
* @param {object} args The input arguments.
*/
da.segment.onpreprocess = function (trigger, args) {
console.log('[SpeechToText] onpreprocess', {trigger: trigger, args: args});
speechText = "";
{"question":"Do you like Future Lab Program? You say yes or no only."}
@cafedeaqua
cafedeaqua / custom_rules.xml
Created January 15, 2014 07:16
for fetch-test-report
<?xml version="1.0" encoding="UTF-8"?>
<project name="cutom">
<property name="reports.dir" value="bin/reports"/>
<!-- The following target shows how to fetch the default report using adb pull. -->
<target name="fetch-test-report">
<echo>Downloading XML test report...</echo>
<mkdir dir="${reports.dir}"/>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}"/>