{"action":"created","issue":{"url":"https://api.github.com/repos/jsierles/react-native-audio/issues/38","repository_url":"https://api.github.com/repos/jsierles/react-native-audio","labels_url":"https://api.github.com/repos/jsierles/react-native-audio/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/jsierles/react-native-audio/issues/38/comments","events_url":"https://api.github.com/repos/jsierles/react-native-audio/issues/38/events","html_url":"https://github.com/jsierles/react-native-audio/issues/38","id":128110306,"number":38,"title":"Added encoding option to recording","user":{"login":"wootwoot1234","id":419609,"avatar_url":"https://avatars.githubusercontent.com/u/419609?v=3","gravatar_id":"","url":"https://api.github.com/users/wootwoot1234","html_url":"https://github.com/wootwoot1234","followers_url":"https://api.github.com/users/wootwoot1234/followers","following_url":"https://api.github.com/users/wootwoot1234/following{/other_user}","gists_url":"https://api.github.com/users/wootwoot1234/gists{/gist_id}","starred_url":"https://api.github.com/users/wootwoot1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wootwoot1234/subscriptions","organizations_url":"https://api.github.com/users/wootwoot1234/orgs","repos_url":"https://api.github.com/users/wootwoot1234/repos","events_url":"https://api.github.com/users/wootwoot1234/events{/privacy}","received_events_url":"https://api.github.com/users/wootwoot1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-22T08:49:23Z","updated_at":"2016-03-16T23:41:28Z","closed_at":null,"body":"I added an encoding option to recording.  I had a hard time figuring out which encoding type to use for `.caf` files.  You used a hard coded number, 16 which I think translates to kAudioFormatMPEGLayer2.  That might be worth double checking.  I tried to create a pull request but I can't figure out how to just pull this commit (https://github.com/wootwoot1234/react-native-audio/commit/43df597b48de72f7e51212321e4a67a9d78b1d11) and not all the changes in my fork.  Hope it helps."},"comment":{"url":"https://api.github.com/repos/jsierles/react-native-audio/issues/comments/197607420","html_url":"https://github.com/jsierles/react-native-audio/issues/38#issuecomment-197607420","issue_url":"https://api.github.com/repos/jsierles/react-native-audio/issues/38","id":197607420,"user":{"login":"wootwoot1234","id":419609,"avatar_url":"https://avatars.githubusercontent.com/u/419609?v=3","gravatar_id":"","url":"https://api.github.com/users/wootwoot1234","html_url":"https://github.com/wootwoot1234","followers_url":"https://api.github.com/users/wootwoot1234/followers","following_url":"https://api.github.com/users/wootwoot1234/following{/other_user}","gists_url":"https://api.github.com/users/wootwoot1234/gists{/gist_id}","starred_url":"https://api.github.com/users/wootwoot1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wootwoot1234/subscriptions","organizations_url":"https://api.github.com/users/wootwoot1234/orgs","repos_url":"https://api.github.com/users/wootwoot1234/repos","events_url":"https://api.github.com/users/wootwoot1234/events{/privacy}","received_events_url":"https://api.github.com/users/wootwoot1234/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T23:41:28Z","updated_at":"2016-03-16T23:41:28Z","body":"It's been a while since this thread was commented on and now I'm forgetting where we left it.  \r\n\r\n@jsierles I have a fork of the code that adds a playWithPath() method and an encoding option to change how recorded audio is encoded.  Would you mind taking a look at my code and letting me know if you would be interested in a pull request?  I'm also going to start working on a method to determine if the app has permission to use the microphone."}}