speech 0.0.1 copy "speech: ^0.0.1" to clipboard
speech: ^0.0.1 copied to clipboard

discontinued
outdated

Flutter plugin to transcribe speech

speech #

[Flutter Plugin] Provides easy access to Google's Streaming Recognize Cloud Service

About speech: #

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.

Example:

// 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()

Flutter #

About Flutter Plugins: https://flutter.io/developing-packages/

Flutter Documentation: https://flutter.io/docs

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin to transcribe speech

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, permission

More

Packages that depend on speech