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

discontinued
outdated

This plugin provides a method that returns a stream. While listening to it, it records audio and sends it to the Google speech api, which then yields a transcript of the audio input. As argument the f [...]

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
30
pub points
0%
popularity

Publisher

unverified uploader

This plugin provides a method that returns a stream. While listening to it, it records audio and sends it to the Google speech api, which then yields a transcript of the audio input. As argument the function needs a valid API key

Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

flutter, permission

More

Packages that depend on speech