mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Change rate to string type
This commit is contained in:
parent
9a62a3c31e
commit
8e8a6dccd0
4 changed files with 6 additions and 6 deletions
2
packages/api/src/textToSpeech.d.ts
vendored
2
packages/api/src/textToSpeech.d.ts
vendored
|
|
@ -7,7 +7,7 @@ declare module '@omnivore/text-to-speech-handler' {
|
|||
export interface SSMLOptions {
|
||||
primaryVoice?: string
|
||||
secondaryVoice?: string
|
||||
rate?: number
|
||||
rate?: string
|
||||
language?: string
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ export type SSMLItem = {
|
|||
export type SSMLOptions = {
|
||||
primaryVoice?: string
|
||||
secondaryVoice?: string
|
||||
rate?: number
|
||||
rate?: string
|
||||
language?: string
|
||||
}
|
||||
|
||||
const DEFAULT_LANGUAGE = 'en-US'
|
||||
const DEFAULT_VOICE = 'en-US-JennyNeural'
|
||||
const DEFAULT_RATE = 1.25
|
||||
const DEFAULT_RATE = '1.0'
|
||||
|
||||
const ANCHOR_ELEMENTS_BLOCKED_ATTRIBUTES = [
|
||||
'omnivore-highlight-id',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { htmlToSpeechFile } from './htmlToSsml'
|
|||
|
||||
interface UtteranceInput {
|
||||
voice?: string
|
||||
rate?: number
|
||||
rate?: string
|
||||
language?: string
|
||||
text: string
|
||||
idx: string
|
||||
|
|
@ -24,7 +24,7 @@ interface HTMLInput {
|
|||
text: string
|
||||
voice?: string
|
||||
language?: string
|
||||
rate?: number
|
||||
rate?: string
|
||||
complimentaryVoice?: string
|
||||
bucket: string
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export interface TextToSpeechInput {
|
|||
voice?: string
|
||||
language?: string
|
||||
textType?: 'html' | 'utterance'
|
||||
rate?: number
|
||||
rate?: string
|
||||
secondaryVoice?: string
|
||||
audioStream?: NodeJS.ReadWriteStream
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue