You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I am developing a TTS function in my flutter app. I use flutter tts and it works normally on android, but on iOS it doesn't sound nor gives any break/problem in the function. It just won't sound. It happens on my iPhone 7 with iOS 15, but seems not to happen in newer iPhones, where it actually sounds.
I'm not sure if this is just a bug or something I got wrong.
This is the very basic code giving problems only on iOS 15 and working on android or new iOS :
await globals.flutterTts.setLanguage('es-ES');
await globals.flutterTts.setPitch(1.2); // Valores más altos para un tono más alto
await globals.flutterTts.setSpeechRate(0.8); // 1.0 es la velocidad por defecto
await globals.flutterTts.speak("HELLO");
in globals:
final FlutterTts flutterTts = FlutterTts();
I get this error:
[catalog] Query for com.apple.MobileAsset.VoiceServices.VoiceResources failed: 2
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(1/2\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "M_FRACTION_OF_$1 EXPANSION_SG_OF_$2" # 1/2 mm --> medio milímetro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "M_FRACTION_OF_$1 de EXPANSION_SG_OF_$2" # 1/4 km² --> un cuarto de kilómetro cuadrado"
[AXTTSCommon] Invalid rule: /(?<=\d\s)(\d/\d\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "$2 y M_FRACTION_OF_$1" # 1/6m --> un sexto de metro
[AXTTSCommon] Invalid rule: /(1/2\s)(milímetro|centímetro|metro|metro cuadrado|metro cúbico|kilómetro|kilómetro cuadrado|kilómetro cúbico|miligramo|gramo|kilo|kilogramo|mililitro|litro)\b/i --> "M_FRACTION_OF_$1 $2" # 1/2 milímetro --> medio milímetro
[AXTTSCommon] Invalid rule: /(milímetros?|centímetros?|metros?|metros? cuadrados?|metros? cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\sy?\s?(1/2)\b/i --> "$1 y M_FRACTION_OF_$2" # 3 metros y 1/2 --> tres metros y medio
[AXTTSCommon] Invalid rule: /M_FRACTION_OF_1/2/ --> "medio" # 1/2 m --> medio metro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s?)(milímetros?|centímetros?|metros?|metros? cuadrados?|metros? cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramoS?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b/i --> "M_FRACTION_OF_$1 de $2" # 1/4 kilómetro --> un cuarto de kilómetro
[AXTTSCommon] Invalid rule: /(?<=\d\s)(\d/\d\s?)(milímetros?|centímetros?|metros?|metros? cuadrados?|metro cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b/i --> "$2 y M_FRACTION_OF_$1" # 2 1/4 kilómetros --> dos kilómetros y un cuarto
[AXTTSCommon] Invalid rule: /(milímetros?|centímetros?|metros?|metro cuadrados?|metro cúbicos?|kilómetros?|kilómetro cuadrados?|kilómetro cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\sy?\s?(\d/\d\s?)/ --> "$1 y M_FRACTION_OF_$2" # 2 milímetros y 1/2 --> dos milímetros y medio
[AXTTSCommon] Invalid rule: /M_FRACTION_OF_(\d/\d)/ --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 --> un cuarto
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)(?=de (pan|masa|taza|hora)\b)/i --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 de pan --> un cuarto de pan
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)(?=de (milímetros?|centímetros?|metros?|metro cuadrados?|metro cúbicos?|kilómetros?|kilómetro cuadrados?|kilómetro cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b)/i --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 de metro --> un cuarto de metro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)/ --> "\e\tn=fraction\$1\e\tn=normal\" # catch-all rule for fractions, to avoid "1/4" --> "uno cuatro"
The text was updated successfully, but these errors were encountered:
Hi there! I am developing a TTS function in my flutter app. I use flutter tts and it works normally on android, but on iOS it doesn't sound nor gives any break/problem in the function. It just won't sound. It happens on my iPhone 7 with iOS 15, but seems not to happen in newer iPhones, where it actually sounds.
I'm not sure if this is just a bug or something I got wrong.
This is the very basic code giving problems only on iOS 15 and working on android or new iOS :
await globals.flutterTts.setLanguage('es-ES');
await globals.flutterTts.setPitch(1.2); // Valores más altos para un tono más alto
await globals.flutterTts.setSpeechRate(0.8); // 1.0 es la velocidad por defecto
await globals.flutterTts.speak("HELLO");
in globals:
final FlutterTts flutterTts = FlutterTts();
I get this error:
[catalog] Query for com.apple.MobileAsset.VoiceServices.VoiceResources failed: 2
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(1/2\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "M_FRACTION_OF_$1 EXPANSION_SG_OF_$2" # 1/2 mm --> medio milímetro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "M_FRACTION_OF_$1 de EXPANSION_SG_OF_$2" # 1/4 km² --> un cuarto de kilómetro cuadrado"
[AXTTSCommon] Invalid rule: /(?<=\d\s)(\d/\d\s?)(mm|cm|m|m²|m2|m³|m3|km|km²|km2|km³|km3|mg|g|kg|l|ml)\b/i --> "$2 y M_FRACTION_OF_$1" # 1/6m --> un sexto de metro
[AXTTSCommon] Invalid rule: /(1/2\s)(milímetro|centímetro|metro|metro cuadrado|metro cúbico|kilómetro|kilómetro cuadrado|kilómetro cúbico|miligramo|gramo|kilo|kilogramo|mililitro|litro)\b/i --> "M_FRACTION_OF_$1 $2" # 1/2 milímetro --> medio milímetro
[AXTTSCommon] Invalid rule: /(milímetros?|centímetros?|metros?|metros? cuadrados?|metros? cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\sy?\s?(1/2)\b/i --> "$1 y M_FRACTION_OF_$2" # 3 metros y 1/2 --> tres metros y medio
[AXTTSCommon] Invalid rule: /M_FRACTION_OF_1/2/ --> "medio" # 1/2 m --> medio metro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s?)(milímetros?|centímetros?|metros?|metros? cuadrados?|metros? cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramoS?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b/i --> "M_FRACTION_OF_$1 de $2" # 1/4 kilómetro --> un cuarto de kilómetro
[AXTTSCommon] Invalid rule: /(?<=\d\s)(\d/\d\s?)(milímetros?|centímetros?|metros?|metros? cuadrados?|metro cúbicos?|kilómetros?|kilómetros? cuadrados?|kilómetros? cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b/i --> "$2 y M_FRACTION_OF_$1" # 2 1/4 kilómetros --> dos kilómetros y un cuarto
[AXTTSCommon] Invalid rule: /(milímetros?|centímetros?|metros?|metro cuadrados?|metro cúbicos?|kilómetros?|kilómetro cuadrados?|kilómetro cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\sy?\s?(\d/\d\s?)/ --> "$1 y M_FRACTION_OF_$2" # 2 milímetros y 1/2 --> dos milímetros y medio
[AXTTSCommon] Invalid rule: /M_FRACTION_OF_(\d/\d)/ --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 --> un cuarto
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)(?=de (pan|masa|taza|hora)\b)/i --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 de pan --> un cuarto de pan
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)(?=de (milímetros?|centímetros?|metros?|metro cuadrados?|metro cúbicos?|kilómetros?|kilómetro cuadrados?|kilómetro cúbicos?|miligramos?|gramos?|kilos?|kilogramos?|mililitros?|litros?)\b)/i --> "\e\tn=fraction\$1\e\tn=normal\" # 1/4 de metro --> un cuarto de metro
[AXTTSCommon] Invalid rule: /(?<!\d|\d\s)(\d/\d\s)/ --> "\e\tn=fraction\$1\e\tn=normal\" # catch-all rule for fractions, to avoid "1/4" --> "uno cuatro"
The text was updated successfully, but these errors were encountered: