Exemplo n.º 1
0
SpeechRecognition* SpeechRecognition::create(ExecutionContext* context)
{
    ASSERT(context && context->isDocument());
    Document* document = toDocument(context);
    ASSERT(document);
    SpeechRecognition* speechRecognition = new SpeechRecognition(document->page(), context);
    speechRecognition->suspendIfNeeded();
    return speechRecognition;
}
Exemplo n.º 2
0
int main(int argc, char *argv[])
{
	printf("start\n");
	SpeechRecognition *sp = new SpeechRecognition;
	sp->insertItem(0, "���ʲô����", 12);
	sp->insertItem(1, "���������", 10);
	sp->insertItem(2, "��ϲ����ʲô", 12);
	sp->insertItem(3, "�ú�ѧϰ", 8);
	sp->start();
	while (getchar() != 'q')
		;
	sp->stop();
	return 0;
}
Exemplo n.º 3
0
SpeechRecognition* SpeechRecognition::create(ExecutionContext* context)
{
    SpeechRecognition* speechRecognition = new SpeechRecognition(context);
    speechRecognition->suspendIfNeeded();
    return speechRecognition;
}
SpeechRecognition* SpeechRecognition::create(ExecutionContext* context)
{
    SpeechRecognition* speechRecognition = adoptRefCountedGarbageCollectedWillBeNoop(new SpeechRecognition(context));
    speechRecognition->suspendIfNeeded();
    return speechRecognition;
}