This commit is contained in:
@@ -31,6 +31,10 @@ export class VoiceStateMachine {
|
||||
|
||||
wake() { return this.transition('LISTENING', 'wake'); }
|
||||
utterance() { return this.transition('THINKING', 'utterance'); }
|
||||
typedUtterance() {
|
||||
if (this.state === 'ARMED' || this.state === 'SLEEPING') this.wake();
|
||||
return this.utterance();
|
||||
}
|
||||
speak() { return this.transition('SPEAKING', 'reply'); }
|
||||
finishSpeaking() { return this.transition('LISTENING', 'playback-finished'); }
|
||||
cancel() { return this.transition('ARMED', 'cancel'); }
|
||||
|
||||
Reference in New Issue
Block a user