Coder Social home page Coder Social logo

Comments (8)

kerlama avatar kerlama commented on June 26, 2024 1

Hi guys,
here's the solution for this (iOS)

in the AudioRecorderAPI.h file add:

#import <AudioToolbox/AudioService.h>

and then in the AudioRecorderAPI.m add the following under the [audioSession setActive:YES error:&err];

UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof (audioRouteOverride),&audioRouteOverride);
And that's it. Build the project again and it should be working.

from cordova-plugin-audio-recorder-api.

emj365 avatar emj365 commented on June 26, 2024

You're welcome. I'm happy to hear people use the plugin that I build.
So far, It can't control the volume. :(

But I think it can implement both recording and playback.
I made this plugin for a demo of a project, so I will improve the plugin when the project starts.

from cordova-plugin-audio-recorder-api.

e-oz avatar e-oz commented on June 26, 2024

thanks, @kerlama

from cordova-plugin-audio-recorder-api.

emj365 avatar emj365 commented on June 26, 2024

Thanks. Pull request is welcome.

from cordova-plugin-audio-recorder-api.

dominikIncibit avatar dominikIncibit commented on June 26, 2024

@kerlama that solved my issue, thanks a lot!

@emj365 please integrate it in the actual plugin.

from cordova-plugin-audio-recorder-api.

KevinWang15 avatar KevinWang15 commented on June 26, 2024

@kerlama Thanks a lot! solved my problem
should be

#import <AudioToolbox/AudioServices.h>

instead of

#import <AudioToolbox/AudioService.h>

though

from cordova-plugin-audio-recorder-api.

eeturiakhil avatar eeturiakhil commented on June 26, 2024

Hi emj365, this is Akhil started my first ionic1 project using angular1 used cordova media capture plugin to record audio file but its not working properly in all mobile devices. Saw your plugin but facing problem in integrating into my project. Could you please provide me step-by-step integration steps and also any example mobile app with this plugin integrated

from cordova-plugin-audio-recorder-api.

emj365 avatar emj365 commented on June 26, 2024

@eeturiakhil I'm glad you like this plugin. This is very normal Cordova, you could read https://github.com/emj365/cordova-plugin-audio-recorder-api/blob/master/README.md#cordova-audio-recorder-api-plugin first. If it can't solve your problem I suggest you read more articles or check questions on StackOverflow about install Cordova plugins.

from cordova-plugin-audio-recorder-api.

Related Issues (20)

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.