Skip to content

Commit

Permalink
Make voicemail hints case insensitive (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
zscgeek authored Dec 13, 2024
1 parent 5e04db8 commit f37e154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/amd-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Amd extends Emitter {
const wordCount = t.alternatives[0].transcript.split(' ').length;
const final = t.is_final;

const foundHint = hints.find((h) => t.alternatives[0].transcript.includes(h));
const foundHint = hints.find((h) => t.alternatives[0].transcript.toLowerCase().includes(h.toLowerCase()));
if (foundHint) {
/* we detected a common voice mail greeting */
this.logger.debug(`Amd:evaluateTranscription: found hint ${foundHint}`);
Expand Down

0 comments on commit f37e154

Please sign in to comment.