@novo-learning/novo-sdk
Version:
SDK for the Novolanguage Speech Analysis API
39 lines (38 loc) • 1.15 kB
TypeScript
import { LanguageCode } from '../../../entities';
export declare type PhoneArray = Array<string>;
declare const PauseDto: {
readonly prohibited: "prohibited";
readonly optional: "optional";
readonly mandatory: "mandatory";
};
declare type PauseDto = typeof PauseDto[keyof typeof PauseDto];
declare const IntonationDto: {
readonly falling: "falling";
readonly rising: "rising";
readonly flat: "flat";
};
declare type IntonationDto = typeof IntonationDto[keyof typeof IntonationDto];
export declare class ProsodyDtoV1 {
pause?: PauseDto;
intonation?: IntonationDto;
stress?: number;
}
export declare class WordPronunciationDtoV1 {
word: string;
correctPronunciations: Array<PhoneArray>;
incorrectPronunciations: Array<PhoneArray>;
liaisonPhoneme?: string;
prosody?: ProsodyDtoV1;
punctuation?: string;
}
export declare class TokenPronunciationDtoV1 {
token: string;
expanded: string;
words: Array<WordPronunciationDtoV1>;
}
export declare class PhrasePronunciationDtoV1 {
language: LanguageCode;
phrase: string;
tokens: Array<TokenPronunciationDtoV1>;
}
export {};