Skip to content

Commit

Permalink
chore: enter value with speech recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanova committed Sep 25, 2024
1 parent d1bf953 commit e5bd015
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class SettingsListComponent {
text: 'Low Vision'
}, {
type: 'Visual Impairments',
text: 'Color Blindness'
text: 'Colour Blindness'
}, {
type: 'Visual Impairments',
text: 'Blindness'
Expand Down Expand Up @@ -86,10 +86,12 @@ export class SettingsListComponent {
const filtered: any = Array.from(event.results).filter(
(r: any) => r.isFinal && r[0].confidence > 0.9
);
if (filtered.length == 0) {
if (filtered.length != 0) {
this.combo.searchbar.handleInput({
target: { value: transcript.substring(0, transcript.length -1) },
target: { value: transcript},
});
this.combo.selectClick();
this.combo.togglePopup(false);
}
};
}
Expand All @@ -109,6 +111,7 @@ export class SettingsListComponent {
public onValueChange(value: string) {
console.log(`value change`);
this.comboboxValue = value;
this.settingsExpanded = true;
}

public activateSpeech() {
Expand Down

0 comments on commit e5bd015

Please sign in to comment.