Git Product home page Git Product logo

flutter_audio's Introduction

*Forked to be able to set num channels and bits for recording

medcorder_audio

Flutter record/play audio plugin.

Developed for Evrone.com

Funded by David Weekly dweek.ly

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

With medcorder_audio plugin you can integrate record/play audio support into your flutter app for iOS or Android.

Plugin functions

setAudioSettings

Future setAudioSettings() iOS only. open PlayAndRecord audio session returns: 'OK', 'FAIL'

backAudioSettings

Future backAudioSettings() iOS only. close PlayAndRecord audio session returns: 'OK', 'FAIL'

startRecord

Future startRecord(String fileId) start record audio file to app documents path returns: 'OK', 'FAIL'

stopRecord

Future stopRecord() stop audio recording process returns: 'OK', 'FAIL'

checkMicrophonePermissions

Future checkMicrophonePermissions() check if you have recording audio permissions returns: 'OK', 'NO'

startPlay

Future startPlay(dynamic params) async start audio playing for file with position returns: 'OK', 'FAIL' params: Map<String, String>

Key Type Description
file String String file Id
position double play start position in seconds

stopPlay

Future stopPlay() stop audio playing returns: 'OK', 'FAIL' params: Map<String, String>

Plugin events

for recieving plugin events you need assign callback function void _onEvent(Map<String, dynamic> event) {...}

recording events

Key Type Description
'code' String 'recording',
'url' String recording file url
'peakPowerForChannel' double peak power for channel
'currentTime' double recording time in seconds

playing events

Key Type Description
'code' String 'playing', 'audioPlayerDidFinishPlaying'
'url' String playing file url
'currentTime' double playing time in seconds
'duration' double playing file duration

flutter_audio's People

Contributors

dimmetrius avatar oysteinkn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.