Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu authored and davehorton committed Dec 18, 2023
1 parent 1fa05b5 commit d753528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/transcription-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const normalizeNuance = (evt, channel, language) => {
};
};

const normalizeMicrosoft = (evt, channel, language, punctuation) => {
const normalizeMicrosoft = (evt, channel, language, punctuation = true) => {
const copy = JSON.parse(JSON.stringify(evt));
const nbest = evt.NBest;
const language_code = evt.PrimaryLanguage?.Language || language;
Expand All @@ -351,7 +351,7 @@ const normalizeMicrosoft = (evt, channel, language, punctuation) => {
}) :
[
{
transcript: evt.DisplayText || evt.Text
transcript: punctuation ? evt.DisplayText || evt.Text : (evt.DisplayText || evt.Text).replace(/\p{P}/gu, '')
}
];

Expand Down

0 comments on commit d753528

Please sign in to comment.