{"image_url":null,"type":"rich","description":"Python\u3067wav\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u751f\u3057\u3088\u3046\u3068\u3059\u308b\u5834\u5408\u3001pyaduio\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u518d\u751f\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002 #file name is open.py import wave import pyaudio #\u958b\u304d\u305f\u3044Wav\u30d5\u30a1\u30a4\u30eb\u3092\u5f15\u6570 def openWave(name): #\u958b\u304d\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u3053\u3053\u306b wf = wave.open(name, \"r\") # \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u958b\u304f p = pyaudio.PyAudio() stream = p.open(format=p.get_format_from_width(wf.getsampwidth()), channels=wf.getnc\u2026","categories":["\u97f3\u97ff"],"author_name":"amakazeryu","height":"190","author_url":"https://blog.hatena.ne.jp/amakazeryu/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_url":"https://amakazeryu.hatenablog.com/","blog_title":"\u3068\u3042\u308b\u5927\u5b66\u751f\u306e\u52c9\u5f37\u30e1\u30e2","width":"100%","url":"https://amakazeryu.hatenablog.com/entry/2019/08/20/194831","title":"Python\u3067\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306b\u518d\u751f\u30fb\u505c\u6b62\u3055\u305b\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Famakazeryu.hatenablog.com%2Fentry%2F2019%2F08%2F20%2F194831\" title=\"Python\u3067\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306b\u518d\u751f\u30fb\u505c\u6b62\u3055\u305b\u308b - \u3068\u3042\u308b\u5927\u5b66\u751f\u306e\u52c9\u5f37\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2019-08-20 19:48:31","version":"1.0"}