{"action":"created","issue":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/46","repository_url":"https://api.github.com/repos/spatialaudio/python-sounddevice","labels_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/46/comments","events_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/46/events","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/46","id":185643565,"number":46,"title":"ogg files arent played on Ubuntu 16.04 but on RaspberryPi with Jessie","user":{"login":"LocutusOfPenguin","id":11613118,"avatar_url":"https://avatars.githubusercontent.com/u/11613118?v=3","gravatar_id":"","url":"https://api.github.com/users/LocutusOfPenguin","html_url":"https://github.com/LocutusOfPenguin","followers_url":"https://api.github.com/users/LocutusOfPenguin/followers","following_url":"https://api.github.com/users/LocutusOfPenguin/following{/other_user}","gists_url":"https://api.github.com/users/LocutusOfPenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/LocutusOfPenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LocutusOfPenguin/subscriptions","organizations_url":"https://api.github.com/users/LocutusOfPenguin/orgs","repos_url":"https://api.github.com/users/LocutusOfPenguin/repos","events_url":"https://api.github.com/users/LocutusOfPenguin/events{/privacy}","received_events_url":"https://api.github.com/users/LocutusOfPenguin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-27T11:34:30Z","updated_at":"2016-10-27T13:02:42Z","closed_at":null,"body":"Hi,\r\ni have a strange problem, but i cant see how to come closer to the cause.\r\n\r\nI use two (software) systems: yours and pydub see: https://github.com/jiaaro/pydub\r\nAnd i have two hardware systems: one is Ubuntu 16.04 and the other a Jessie for RaspPi(3).\r\n\r\nIf i let sounddevice play a ogg fiel on Rasp, it works. But it fails on ubuntu (i hear noise).\r\nIf i do the same with pydub no problem with Ubuntu and on RaspPi , its in worse quality (not useful, but i can guess the voice file - whereas on first, its just noise).\r\n\r\nJürgen\r\n"},"comment":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/comments/256634290","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/46#issuecomment-256634290","issue_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/46","id":256634290,"user":{"login":"mgeier","id":705404,"avatar_url":"https://avatars.githubusercontent.com/u/705404?v=3","gravatar_id":"","url":"https://api.github.com/users/mgeier","html_url":"https://github.com/mgeier","followers_url":"https://api.github.com/users/mgeier/followers","following_url":"https://api.github.com/users/mgeier/following{/other_user}","gists_url":"https://api.github.com/users/mgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/mgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgeier/subscriptions","organizations_url":"https://api.github.com/users/mgeier/orgs","repos_url":"https://api.github.com/users/mgeier/repos","events_url":"https://api.github.com/users/mgeier/events{/privacy}","received_events_url":"https://api.github.com/users/mgeier/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T13:02:42Z","updated_at":"2016-10-27T13:02:42Z","body":"There are many ways to plot. Do you have `matplotlib`?\r\nDo you have a screen connected to your RaspPi?\r\n\r\nIf yes, you can try this:\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.plot(data)  # where \"data\" is your audio data from the file\r\nplt.show()\r\n```\r\n\r\nIf you don't have a screen, you can save the plot to a file instead of calling `plt.show()`:\r\n\r\n```python\r\nplt.savefig('my_plot.png')\r\n```\r\n\r\nNote that #1 is *not* closed, it's still waiting for a fix!\r\n\r\n> this is run in thread anyway...so, i don't care too much\r\n\r\nYou probably should care, since if your thread stops before playback is finished, you might run into the same problem.\r\n\r\nMy example [play_file.py](../blob/master/examples/play_file.py) already uses the second alternative of what I told you before:\r\n\r\n```python\r\nsd.play(data, fs, device=args.device, blocking=True)\r\nstatus = sd.get_status()\r\nif status:\r\n    logging.warning(str(status))\r\n```"}}
{"actor":{"display_login":"mgeier"}}