mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2681 from omnivore-app/fix/ios-ultra-voice-pairs
Fix bug preventing secondary ultra releastic voices from being used
This commit is contained in:
commit
acee34a03a
1 changed files with 7 additions and 2 deletions
|
|
@ -357,6 +357,12 @@
|
|||
|
||||
public var currentVoicePair: VoicePair? {
|
||||
let voice = currentVoice
|
||||
if Voices.isUltraRealisticVoice(currentVoice) {
|
||||
let ultraPair = Voices.UltraPairs.first { $0.firstKey == currentVoice || $0.secondKey == currentVoice }
|
||||
if let ultraPair = ultraPair {
|
||||
return ultraPair
|
||||
}
|
||||
}
|
||||
return Voices.Pairs.first(where: { $0.firstKey == voice || $0.secondKey == voice })
|
||||
}
|
||||
|
||||
|
|
@ -456,8 +462,7 @@
|
|||
}
|
||||
|
||||
public var secondaryVoice: String {
|
||||
let pair = Voices.Pairs.first { $0.firstKey == currentVoice || $0.secondKey == currentVoice }
|
||||
if let pair = pair {
|
||||
if let pair = currentVoicePair {
|
||||
if pair.firstKey == currentVoice {
|
||||
return pair.secondKey
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue