Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
display words and words have same corrected offset
  • Loading branch information
glharper committed Mar 3, 2023
commit 506dfc8211cbebdda3260e2e03fc66e475352295
6 changes: 6 additions & 0 deletions src/common.speech/ServiceMessages/DetailedSpeechPhrase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface IPhrase {
Display?: string;
DisplayText?: string;
Words?: IWord[];
DisplayWords?: IWord[];
}

export interface IWord {
Expand Down Expand Up @@ -59,6 +60,11 @@ export class DetailedSpeechPhrase implements IDetailedSpeechPhrase {
word.Offset += offset;
}
}
if (!!details.DisplayWords) {
for (const word of details.DisplayWords) {
word.Offset += offset;
}
}
}
}
}
Expand Down