speech_to_text_google 1.2.4

  • Readme
  • Changelog
  • Installing
  • 67

speech_to_text #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1.2.4 #

support to pass a fetchedToken instead of a callback.

1.2.3 #

remove the assets directive.

1.2.2 #

now support useEnhanced argument.

1.2.1 #

now support modelType argument.

1.2.0 #

now support infinite streaming.

1.1.0 #

Now support authentication via both account and token.

1.0.0+1 #

basic feature.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  speech_to_text_google: ^1.2.4

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:speech_to_text_google/main.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 16, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Fix lib/main.dart. (-1 points)

Analysis of lib/main.dart reported 2 hints:

line 52 col 7: The value of the field '_counter' isn't used.

line 58 col 33: 'SpeechToText' is deprecated and shouldn't be used. this function is deprecated, please use initWithFetchedToken instead.

Fix lib/src/generated/google/protobuf/any.pb.dart. (-0.50 points)

Analysis of lib/src/generated/google/protobuf/any.pb.dart reported 1 hint:

line 12 col 8: Don't import implementation files from another package.

Fix lib/src/generated/google/protobuf/duration.pb.dart. (-0.50 points)

Analysis of lib/src/generated/google/protobuf/duration.pb.dart reported 1 hint:

line 13 col 8: Don't import implementation files from another package.

Fix additional 25 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/src/generated/google/protobuf/struct.pb.dart (1 hint)
  • lib/src/generated/google/protobuf/timestamp.pb.dart (1 hint)
  • lib/src/generated/google/cloud/speech/v1/cloud_speech.pb.dart (Run flutter format to format lib/src/generated/google/cloud/speech/v1/cloud_speech.pb.dart.)
  • lib/src/generated/google/cloud/speech/v1/cloud_speech.pbenum.dart (Run flutter format to format lib/src/generated/google/cloud/speech/v1/cloud_speech.pbenum.dart.)
  • lib/src/generated/google/cloud/speech/v1/cloud_speech.pbjson.dart (Run flutter format to format lib/src/generated/google/cloud/speech/v1/cloud_speech.pbjson.dart.)
  • lib/src/generated/google/longrunning/operations.pb.dart (Run flutter format to format lib/src/generated/google/longrunning/operations.pb.dart.)
  • lib/src/generated/google/longrunning/operations.pbenum.dart (Run flutter format to format lib/src/generated/google/longrunning/operations.pbenum.dart.)
  • lib/src/generated/google/longrunning/operations.pbjson.dart (Run flutter format to format lib/src/generated/google/longrunning/operations.pbjson.dart.)
  • lib/src/generated/google/protobuf/any.pbenum.dart (Run flutter format to format lib/src/generated/google/protobuf/any.pbenum.dart.)
  • lib/src/generated/google/protobuf/any.pbjson.dart (Run flutter format to format lib/src/generated/google/protobuf/any.pbjson.dart.)
  • lib/src/generated/google/protobuf/duration.pbenum.dart (Run flutter format to format lib/src/generated/google/protobuf/duration.pbenum.dart.)
  • lib/src/generated/google/protobuf/duration.pbjson.dart (Run flutter format to format lib/src/generated/google/protobuf/duration.pbjson.dart.)
  • lib/src/generated/google/protobuf/empty.pb.dart (Run flutter format to format lib/src/generated/google/protobuf/empty.pb.dart.)
  • lib/src/generated/google/protobuf/empty.pbenum.dart (Run flutter format to format lib/src/generated/google/protobuf/empty.pbenum.dart.)
  • lib/src/generated/google/protobuf/empty.pbjson.dart (Run flutter format to format lib/src/generated/google/protobuf/empty.pbjson.dart.)
  • lib/src/generated/google/protobuf/struct.pbenum.dart (Run flutter format to format lib/src/generated/google/protobuf/struct.pbenum.dart.)
  • lib/src/generated/google/protobuf/struct.pbjson.dart (Run flutter format to format lib/src/generated/google/protobuf/struct.pbjson.dart.)
  • lib/src/generated/google/protobuf/timestamp.pbenum.dart (Run flutter format to format lib/src/generated/google/protobuf/timestamp.pbenum.dart.)
  • lib/src/generated/google/protobuf/timestamp.pbjson.dart (Run flutter format to format lib/src/generated/google/protobuf/timestamp.pbjson.dart.)
  • lib/src/generated/google/rpc/code.pb.dart (Run flutter format to format lib/src/generated/google/rpc/code.pb.dart.)
  • lib/src/generated/google/rpc/code.pbenum.dart (Run flutter format to format lib/src/generated/google/rpc/code.pbenum.dart.)
  • lib/src/generated/google/rpc/code.pbjson.dart (Run flutter format to format lib/src/generated/google/rpc/code.pbjson.dart.)
  • lib/src/generated/google/rpc/status.pb.dart (Run flutter format to format lib/src/generated/google/rpc/status.pb.dart.)
  • lib/src/generated/google/rpc/status.pbenum.dart (Run flutter format to format lib/src/generated/google/rpc/status.pbenum.dart.)
  • lib/src/generated/google/rpc/status.pbjson.dart (Run flutter format to format lib/src/generated/google/rpc/status.pbjson.dart.)

Maintenance suggestions

The package description is too short. (-18 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and speech_to_text_google.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cupertino_icons ^0.1.2 0.1.3
flutter 0.0.0
googleapis ^0.54.0 0.54.0
googleapis_auth ^0.2.10 0.2.11+1
grpc ^2.1.2 2.1.3
path_provider ^1.3.0 1.5.1
protobuf ^1.0.0 1.0.1
Transitive dependencies
_discoveryapis_commons 0.1.9
async 2.4.0
charcode 1.1.2
collection 1.14.11 1.14.12
convert 2.1.1
crypto 2.1.4
fixnum 0.10.11
http 0.12.0+4
http2 1.0.0
http_parser 3.1.3
meta 1.1.8
path 1.6.4
pedantic 1.9.0
platform 2.2.1
sky_engine 0.0.99
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies