{"action":"created","issue":{"url":"https://api.github.com/repos/bmcfee/librosa/issues/223","labels_url":"https://api.github.com/repos/bmcfee/librosa/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/bmcfee/librosa/issues/223/comments","events_url":"https://api.github.com/repos/bmcfee/librosa/issues/223/events","html_url":"https://github.com/bmcfee/librosa/issues/223","id":99187103,"number":223,"title":"How to write wav file of PCM format?","user":{"login":"friskit-china","id":2494883,"avatar_url":"https://avatars.githubusercontent.com/u/2494883?v=3","gravatar_id":"","url":"https://api.github.com/users/friskit-china","html_url":"https://github.com/friskit-china","followers_url":"https://api.github.com/users/friskit-china/followers","following_url":"https://api.github.com/users/friskit-china/following{/other_user}","gists_url":"https://api.github.com/users/friskit-china/gists{/gist_id}","starred_url":"https://api.github.com/users/friskit-china/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friskit-china/subscriptions","organizations_url":"https://api.github.com/users/friskit-china/orgs","repos_url":"https://api.github.com/users/friskit-china/repos","events_url":"https://api.github.com/users/friskit-china/events{/privacy}","received_events_url":"https://api.github.com/users/friskit-china/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bmcfee/librosa/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-05T11:50:20Z","updated_at":"2015-08-06T14:44:15Z","closed_at":"2015-08-06T14:44:15Z","body":"Hello,\r\n\r\nRecently, I need librosa to process some audio file. When I use \"librosa.out.write_wav()\", I got a wav file with format of \"WAVE_FORMAT_IEEE_FLOAT\". But I need the format of \"WAVE_FORMAT_PCM\".\r\n\r\nCould you please tell me how to do that?\r\n\r\n(sorry, I'm not good in English)"},"comment":{"url":"https://api.github.com/repos/bmcfee/librosa/issues/comments/128399136","html_url":"https://github.com/bmcfee/librosa/issues/223#issuecomment-128399136","issue_url":"https://api.github.com/repos/bmcfee/librosa/issues/223","id":128399136,"user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T14:44:15Z","updated_at":"2015-08-06T14:44:15Z","body":"> Does any one have the better solution?\r\n\r\nNope!  You beat me to the punch, but I'd recommend using pysoundfile if you want maximal control over the encoding of your output.\r\n\r\nThe librosa.output function is just a convenience wrapper for scipy's wav writer, so any odd behavior is up to scipy, not librosa."}}