ifly_speech_recognition 1.0.4 copy "ifly_speech_recognition: ^1.0.4" to clipboard
ifly_speech_recognition: ^1.0.4 copied to clipboard

根据科大讯飞 `语音听写(流式版)WebAPI` 文档,实现60s的语音识别功能。

3
likes
95/ 160
pub points
60%
popularity

We analyzed this package 19 hours ago, and awarded it 95 pub points (of a possible 160):

failed
Follow Dart file conventions
15 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

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.

The package description contains too many non-ASCII characters.

The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.

5/5 points: Provide a valid README.md

0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

43 out of 91 API elements (47.3 %) have documentation comments.

Some symbols that are missing documentation: ifly_speech_recognition, ifly_speech_recognition.SpeechRecognitionBusiness, ifly_speech_recognition.SpeechRecognitionBusiness.SpeechRecognitionBusiness, ifly_speech_recognition.SpeechRecognitionBusiness.fromJson, ifly_speech_recognition.SpeechRecognitionBusiness.toJson.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:ifly_speech_recognition/ifly_speech_recognition.dart that imports:
  • package:ifly_speech_recognition/src/speech_recognition_service.dart that imports:
  • package:flutter_sound/flutter_sound.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Linux`.

Because:

  • package:ifly_speech_recognition/ifly_speech_recognition.dart that imports:
  • package:ifly_speech_recognition/src/speech_recognition_service.dart that imports:
  • package:flutter_sound/flutter_sound.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `macOS`.

Because:

  • package:ifly_speech_recognition/ifly_speech_recognition.dart that imports:
  • package:ifly_speech_recognition/src/speech_recognition_service.dart that imports:
  • package:flutter_sound/flutter_sound.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Web`.

Because:

  • package:ifly_speech_recognition/ifly_speech_recognition.dart that imports:
  • package:ifly_speech_recognition/src/speech_recognition_service.dart that imports:
  • package:flutter_sound/flutter_sound.dart that imports:
  • package:flutter_sound/public/tau.dart that imports:
  • package:flutter_sound/public/flutter_sound_player.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

ERROR: The argument type 'StreamSink

lib/src/speech_recognition_service.dart:436:21

    ╷
436 │           toStream: _mRecordingDataController!.sink,
    │                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/speech_recognition_service.dart

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
audio_session ^0.1.19 0.1.21 0.1.21
crypto ^3.0.3 3.0.6 3.0.6
flutter flutter 0.0.0 0.0.0
flutter_sound ^9.2.13 9.17.0 9.17.0
intl ^0.19.0 0.19.0 0.20.0
web_socket_channel ^3.0.0 3.0.1 3.0.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
characters - 1.3.0 1.3.1
clock - 1.1.2 1.1.2
collection - 1.18.0 1.19.1
ffi - 2.1.3 2.1.3
fixnum - 1.1.1 1.1.1
flutter_sound_platform_interface - 9.17.0 9.17.0
flutter_sound_web - 9.17.0 9.17.0
flutter_web_plugins - 0.0.0 0.0.0
js - 0.7.1 0.7.1
logger - 2.4.0 2.4.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
path - 1.9.1 1.9.1
path_provider - 2.1.5 2.1.5
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
provider - 6.1.2 6.1.2
recase - 4.1.0 4.1.0
rxdart - 0.28.0 0.28.0
sky_engine - 0.0.99 0.0.99
sprintf - 7.0.0 7.0.0
stream_channel - 2.1.2 2.1.2
synchronized - 3.3.0+3 3.3.0+3
typed_data - 1.4.0 1.4.0
uuid - 4.5.1 4.5.1
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
web_socket - 0.1.6 0.1.6
xdg_directories - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.19.0` on intl does not support the stable version `0.20.0`, that was published 0 days ago.

When intl is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions intl to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

3
likes
95
pub points
60%
popularity

Publisher

unverified uploader

根据科大讯飞 `语音听写(流式版)WebAPI` 文档,实现60s的语音识别功能。

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

audio_session, crypto, flutter, flutter_sound, intl, web_socket_channel

More

Packages that depend on ifly_speech_recognition