FLUTTER ECOSYSTEM

Zfinix/acr_cloud_sdk

🎵 🎶 ACR Cloud SDK for Flutter

acr_cloud_sdk 项目封面
Stars
24
Forks
10
最近推送(UTC)
2023年7月26日
项目状态
未归档
Chiziaruhoma Ogbonda GitHub avatar
GITHUB User

Chiziaruhoma Ogbonda ↗

Systems & Harness Engineer

语言DartObjective-CKotlinSwiftRuby

技术话题

此仓库发布的插件

使用的依赖

依赖清单 4 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

ACR Cloud SDK

** This is an unofficial SDK for flutter

Automatic content recognition (ACR) is an identification technology to recognise content played on a media device or present in a media file. This enables users quickly obtain detailed information about the content they have just experienced without any text based input or search efforts.

🤔 How ACR works

ACR can help users deal with multimedia more effective and make applications more intelligent. More info.

📸 Screen Shots

https://github.com/Zfinix/acr_cloud_sdk/blob/main/1.png?raw=true https://github.com/Zfinix/acr_cloud_sdk/blob/main/2.png?raw=true https://github.com/Zfinix/acr_cloud_sdk/blob/main/3.png?raw=true

🚀 Initialize SDK
  final AcrCloudSdk arc = AcrCloudSdk();
  
      arc..init(
          host: '', // obtain from https://www.acrcloud.com/ 
          accessKey: '', // obtain from https://www.acrcloud.com/ 
          accessSecret: '', // obtain from https://www.acrcloud.com/ 
          setLog: false,
        )..songModelStream.listen(searchSong);
  
  void searchSong(SongModel song) async {
      print(song); // Recognized song data
  }

Initialize sdk and listen for song recognition events.

️🎶 Start Recognition
 bool started = await arc.start();
  • This function will automatic start the recording and recognizing process.
  • When there’s a result, songModelStream & resultStream will return the data as events.
  • The whole recognition time is controlled by ACRCloud’s Server.
  • You can call the stop function to terminate this process.
⛔ Stop Recognition
 bool started = await arc.stop();
  • This function will cancel the recognition immediately.

✨ Contribution

Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.