SpeakerHandler constructor
SpeakerHandler({})
Implementation
SpeakerHandler({
SimpleAudioPlayer Function(File file)? playerFactory,
this.onPlay,
this.onSentenceCompleted,
String? voice,
Duration? maxSentenceDelay,
}) : playerFactory = playerFactory ?? DynamicFactories.simplePlayerFactory,
maxSentenceDelay =
maxSentenceDelay ?? const Duration(milliseconds: 250),
voice = voice ?? 'onyx';