-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download not working!? #13
Comments
It's an issue that hasn't responses for me. Looking for a solution I've modified the code to save the audio file to server. Maybe could be useful for you. Just search "control.save" in angular-audio-recorder.js file ( near line 377 ) and write this:
Just in case, my uploader php file ( /app/api/upload/audioMessage.php ) is something like this:
|
I tried to use CristalT's method but it didn't come to an avail.. Expression 'undefined' in attribute 'audioModel' used with directive 'ngAudioRecorder' is non-assignable! Any solutions? |
Check the audio-model attribute in your ng-audio-recorder directive, here's mine:
|
Upon inspecting the browser's Network section (in dev tools) I can see that a wav file is indeed generated. It appears as data:audio/wav;base64,UklGRiBABwBXQVZF... so my question is how would I save that file on a remote server. |
My bad, I had made edits to the js file but was still using the .min version The last thing I want to know is why is that the page automatically asks for audio permission on page load? Presumably, request to access audio must happen upon clicking on recordAudio?!? |
Have you check the configuration of your AngularJS? Have you added all right dependences? |
That’s my directive:
<ng-audio-recorder audio-model="recorded" style="display: inline-block; margin-right: 6px; margin-left: 4px;" id="mainAudio-@{{chat.room_id}}" show-player="false">
<i ng-init="recorder.stopRecord()" rm-onhold="recorder.startRecord()" ng-mouseleave="recorder.stopRecord(); recorder.save();" style="display: inline-block; margin-right: 6px; margin-left: 4px;" class="fa fa-microphone" aria-hidden="true" time-limit="600">
</i>
</ng-audio-recorder>
It does record and I can access the recorded file in Network but when it uploads to the server, it’s only 4 bytes (and empty!)
|
For anyone who has the same problem as me (uploaded file is only 4 bytes): You need to put the block related to upload in $timeout so that there will be enough time to prepare the file. |
Why isnt the download working? ive tried everything including the demo and it doesnt work?
Whats going on?
The text was updated successfully, but these errors were encountered: