@novo-learning/novo-sdk
Version:
SDK for the Novolanguage Speech Analysis API
52 lines (51 loc) • 1.57 kB
TypeScript
import { LanguageCode } from '../../../entities';
declare const PhoneDurationDto: {
readonly short: "short";
readonly normal: "normal";
readonly long: "long";
readonly superlong: "superlong";
};
declare type PhoneDurationDto = typeof PhoneDurationDto[keyof typeof PhoneDurationDto];
declare const PauseDto: {
readonly prohibited: "prohibited";
readonly optional: "optional";
readonly mandatory: "mandatory";
};
declare type PauseDto = typeof PauseDto[keyof typeof PauseDto];
export declare class PhonemesDtoV2 {
phoneme: string;
duration?: Array<PhoneDurationDto>;
}
export declare class CorrectPronunciationsDtoV2 {
phonemes: Array<PhonemesDtoV2>;
}
declare const IntonationDto: {
readonly falling: "falling";
readonly rising: "rising";
readonly flat: "flat";
};
declare type IntonationDto = typeof IntonationDto[keyof typeof IntonationDto];
export declare class ProsodyDtoV2 {
pause?: PauseDto;
intonation?: IntonationDto;
stress?: number;
}
export declare class WordPronunciationDtoV2 {
word: string;
correctPronunciations: Array<CorrectPronunciationsDtoV2>;
incorrectPronunciations: Array<CorrectPronunciationsDtoV2>;
liaisonPhoneme?: string;
prosody?: ProsodyDtoV2;
punctuation?: string;
}
export declare class TokenPronunciationDtoV2 {
token: string;
expanded: string;
words: Array<WordPronunciationDtoV2>;
}
export declare class PhrasePronunciationDtoV2 {
language: LanguageCode;
phrase: string;
tokens: Array<TokenPronunciationDtoV2>;
}
export {};