We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c4c10 commit 7cfbf24Copy full SHA for 7cfbf24
1 file changed
sdk/runanywhere-flutter/packages/runanywhere/lib/native/dart_bridge_tts.dart
@@ -9,7 +9,8 @@ import 'dart:isolate';
9
import 'dart:typed_data';
10
11
import 'package:ffi/ffi.dart';
12
-
+import 'package:runanywhere/features/tts/system_tts_service.dart'
13
+ show TTSConfiguration;
14
import 'package:runanywhere/foundation/logging/sdk_logger.dart';
15
import 'package:runanywhere/native/ffi_types.dart';
16
import 'package:runanywhere/native/platform_loader.dart';
@@ -190,6 +191,12 @@ class DartBridgeTTS {
190
191
double pitch = 1.0,
192
double volume = 1.0,
193
}) async {
194
+ TTSConfiguration(
195
+ speakingRate: rate,
196
+ pitch: pitch,
197
+ volume: volume,
198
+ ).validate();
199
+
200
final handle = getHandle();
201
202
if (!isLoaded) {
0 commit comments