setTtsCacheEnabled method
设置TTS缓存启用状态
Implementation
Future<void> setTtsCacheEnabled(bool enabled) async {
try {
await _channel.invokeMethod('setTtsCacheEnabled', {'enabled': enabled});
} on PlatformException catch (e) {
throw Exception('设置TTS缓存失败: ${e.message}');
}
}