Add more ultra voices, add a larger font size in the reader

This commit is contained in:
Jackson Harper
2023-08-23 12:18:01 +08:00
parent 727e23a987
commit 6b398c0571
3 changed files with 29 additions and 3 deletions

View File

@ -105,8 +105,10 @@ public enum Voices {
]
public static let UltraPairs = [
VoicePair(firstKey: "Antoni", secondKey: "Serena", firstName: "Antoni", secondName: "Serena", language: "en-US", category: .enUS)
VoicePair(firstKey: "Daniel", secondKey: "Dorothy", firstName: "Daniel", secondName: "Dorothy", language: "en-GB", category: .enUK)
VoicePair(firstKey: "Michael", secondKey: "Matilda", firstName: "Michael", secondName: "Matilda", language: "en-US", category: .enUS)
VoicePair(firstKey: "Josh", secondKey: "Bella", firstName: "Josh", secondName: "Bella", language: "en-US", category: .enUS)
// VoicePair(firstKey: "Arnold", secondKey: "Bella", firstName: "Arnold", secondName: "Bella", language: "en-US", category: .enUS),
// VoicePair(firstKey: "Adam", secondKey: "Elli", firstName: "Adam", secondName: "Elli", language: "en-US", category: .enUS)
]
}

View File

@ -203,7 +203,7 @@ public enum WebFont: String, CaseIterable {
}, label: { Image(systemName: "textformat.size.smaller") })
.frame(width: 25, height: 25, alignment: .center)
CustomSlider(value: $storedFontSize, minValue: 10, maxValue: 28) { _ in
CustomSlider(value: $storedFontSize, minValue: 10, maxValue: 42) { _ in
if storedFontSize % 1 == 0 {
updateReaderPreferences()
}

View File

@ -8,6 +8,30 @@ import { stripEmojis } from './htmlToSsml'
const getRealisticVoiceId = (name: string | undefined) => {
const voiceList = [
{
voiceId: 'ErXwobaYiN019PkySvjV',
name: 'Antoni',
},
{
voiceId: 'pMsXgVXv3BLzUgSXRplE',
name: 'Serena',
},
{
voiceId: 'onwK4e9ZLuTAKqWW03F9',
name: 'Daniel',
},
{
voiceId: 'ThT5KcBeYPX3keUQqHPh',
name: 'Dorothy',
},
{
voiceId: 'flq6f7yk4E4fJM5XTYuZ',
name: 'Michael',
},
{
voiceId: 'XrExE9yKIg1WjnnlVkGX',
name: 'Matilda',
},
{
voiceId: '21m00Tcm4TlvDq8ikWAM',
name: 'Rachel',