搜索插件、代码仓与 APP 分类

插件详情v2.0.2

acr_cloud_sdk

这是一个非官方的 ACR Cloud SDK,用于在 Flutter 中识别声音和音乐

AndroidiOSmacOS
近 30 天下载
179
喜欢数
31
Pub 分数
130

安装插件

flutter pub add acr_cloud_sdk

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

ACR Cloud SDK 是一个非官方的 Flutter 包,可在 Flutter 应用中实现声音和音乐识别。它利用 ACR Cloud 强大的音频指纹技术,实时识别歌曲、音频内容和媒体。该 SDK 兼容 Android、iOS 和 macOS,使开发者能够以最少的设置将强大的音频识别功能集成到应用中。该包通过提供调用 ACR Cloud API 的简洁 Dart 接口,简化了集成过程。它非常适合用于音乐发现、音频标记或互动媒体体验。

适合场景

  • 应用中的音乐识别
  • 音频内容标记
  • 互动媒体体验
  • 实时声音识别
  • 媒体元数据检索

主要特点

  • 实时音频识别
  • 跨平台支持(Android、iOS、macOS)
  • 简单的 Dart API
  • 非官方但功能完整的实现
  • 与 ACR Cloud 云服务的集成

适合对象

  • 音乐发现应用
  • 基于音频的搜索工具
  • 互动娱乐应用
  • 教育类音频应用
  • 需要媒体识别的应用程序

使用建议

  • 非官方 SDK – 可能需要更新以适应 ACR Cloud API 的新变化
  • 需要互联网连接以进行识别
  • 依赖外部ACR Cloud服务
  • 识别结果可能存在延迟
  • 与官方 SDK 相比,文档有限

原始 README

以下为关联源码仓库的 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

🚀 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.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目