flutter录音_Flutter声音插件, 录音机和播放器

Flutter Sound是一个为Android和iOS提供简单录音和播放功能的插件,支持多种编解码器。它可以播放本地或远程文件,控制设备锁屏或Apple Watch上的播放,并处理从原生同步的播放流。该插件维护两个版本分支,V4稳定且长期支持,V5则引入更多改进。此外,它还提供了两个示例应用,分别演示了基本功能和UI小部件的使用。
摘要由CSDN通过智能技术生成

Flutter Sound

This plugin provides simple recorder and player functionalities for both Android and iOS platforms.

Features

Play and Record sounds or music with various codecs. (See the supported codecs here)

Play local or remote files specified by their URL.

The App playback can be controled from the device lock screen or from an Apple watch

Handle playback stream from native (To sync exact time with bridging). [Not sure to understand what it means!]

Flutter Sound branches

We actually maintain two branches for Flutter Sound :

The V4 branch (the version ^4.0.0)

The master branch (actually the version ^5.0.0)

We do not expect that everybody will switch today from 4.x.x to 5.x.x.

V4 is our stable branch, and will be maintained as long as everybody will not have switch to V5 : in other words V4 is our LTS version (Long Term Support).

Migration Guides

To migrate to 4.x.x from 3.x.x you must do some minor changes in your configurations files.

To migrate to 5.x.x from 4.x.x you must do a few changes in your App.

Free Read

Medium Blog. [This link is probably obsolete!]

SDK requirements

Flutter Sound requires an iOS 9.3 SDK (or later)

Flutter Sound requires an Android 24 (or later)

Installation

Here is a guide for Flutter Sound installation

Flutter Sound API

Flutter Sound is composed with 4 modules :

FlutterSoundPlayer, wich deal with everything about playbacks

FlutterSoudRecorder, which deal with everything about recording

FlutterSoundHelper, which offers some convenients tools

FlutterSoundUI, which offer some Widget ready to be used out of the box

To use Flutter Sound you just do :

import 'package:flutter_sound/flutter_sound.dart';

This will export all the necessaries dart interfaces.

Examples (Demo Apps)

Flutter Sound comes with two Demo/Examples :

Demo1 app is a small demonstration of what we can do with Flutter Sound. This Demo App is a kind of exerciser which try to implement the major Flutter Sound features. This Demo does not use the Flutter Sound UI Widgets

Demo2 app is an example of what can be done using the Flutter Sound UI Widgets

License

Flutter Sound is copyrighted by Dooboolab (2018, 2019, 2020) Flutter Sound is released under a license with a copyleft clause: the LGPL-V3 license. This means that if you modify some of Flutter Sound code you must be publish your modifications under the LGPL license too.

Contributions

Flutter Sound is a free and Open Source project. Several contributors have already contributed to Flutter Sound. Specially :

@hyochan who is the Flutter Sound father

@salvatore373 who wrote the Track Player

@bsutton who wrote the UI Widgets

@larpoux who add several codec supports

We really need your contributions. Pull Requests are welcome and will be considered very carefully.

Bugs, Features Requests, documentation inaccurate, help needed, ...

We use Github actively.

When you fill an issue, we try to answer something in less than 48h. Of course, this will not mean that your issue will be fixed in 48h. But you will know that we confirm (or not) your issue and what answer you can expect. Maintenance is our priority. We try to make it perfect.

TODO

Record and playback raw PCM both on Android and iOS

Record OPUS on Android

Record MP3 both on Android and iOS

Record raw PCM to a Dart Stream instead of a file

Playback raw PCM from a Dart Stream instead of a file

Streaming records to Speech to Text

More support for the Apple Watch

Tests unit to avoid any regression

Flutter Web App support

Flutter Sound port to React Native

Better UI Widget

Lock screen control between two sounds.

Help Maintenance

My friend Hyo has been maintaining quite many repos these days and he is burning out slowly. If you could help him cheer up, buy him a cup of coffee will make his life really happy and get much energy out of it. As a side effect, we will know that Flutter Sound is important for you, that you appreciate our job and that you can show it with a little money.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值