I expect to be able to see the text available in the input so that I can have the option to edit before I save to database
startListening() {
let options = {
language: 'en-US',
matches: 2,
prompt: 'Say Something!'
}
this.speechRecognition.startListening(options).subscribe(matches => {
this.matches = matches;
this.cd.detectChanges();
});
this.isRecording = true;
}
<ion-grid>
<ion-row>
<ion-col *ngIf="matches">
<h3 *ngFor="let match of matches">
{{ match }}
</h3>
<ion-item>
<ion-input type="text" [(ngModel)]="matches">
</ion-input>
</ion-item>
</ion-col>
</ion-row>
</ion-grid>