Provides easy access to Google's Streaming Recognize Cloud Service
The googleapis plugin currently lacks support for streaming transcription, so I'm implementing it here
=> Android only, iOS Support planned in the future.
How to use:
The plugin provides one method:
Stream<String> transcript(String privateApiKey)
Listening to this stream starts sending audio data (LINEAR16, 16kHz) to Google and yields the responses while cancelling the subscription stops the stream.
// Init a new Stream Stream<String> stream = transcript("xxxxxxxxxxxxxxxx"); // Start listening to the stream StreamSubscription<String> listener = stream.listen((response) => print(response)); // Cancel the subscription listener.cancel()
About Flutter Plugins: https://flutter.io/developing-packages/
Flutter Documentation: https://flutter.io/docs