mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Send rate as a string
This commit is contained in:
parent
be2d0e03dd
commit
6c0c8e8d26
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ struct UtteranceRequest: Codable {
|
|||
let text: String
|
||||
let voice: String
|
||||
let language: String
|
||||
let rate: Double
|
||||
let rate: String
|
||||
}
|
||||
|
||||
struct Utterance: Decodable {
|
||||
|
|
@ -26,7 +26,7 @@ struct Utterance: Decodable {
|
|||
public let wordCount: Double
|
||||
|
||||
func toSSML(document: SpeechDocument) throws -> Data? {
|
||||
let request = UtteranceRequest(text: text, voice: voice ?? document.defaultVoice, language: document.language, rate: 1.1)
|
||||
let request = UtteranceRequest(text: text, voice: voice ?? document.defaultVoice, language: document.language, rate: "1.1")
|
||||
return try JSONEncoder().encode(request)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue