<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kurene</author_name>
  <author_url>https://blog.hatena.ne.jp/Kurene/</author_url>
  <blog_title>Wizard Notes</blog_title>
  <blog_url>https://www.wizard-notes.com/</blog_url>
  <categories>
    <anon>LibROSA</anon>
    <anon>Python</anon>
    <anon>楽曲解析</anon>
    <anon>音響音楽信号処理</anon>
  </categories>
  <description>問題 最近のバージョンの librosa では、信号を保存する時、16-bit 整数（int）型のWAVファイルで書き出そうとすると、以下のようなエラーが出てしまい、ファイル出力できません。 &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import librosa &gt;&gt;&gt; y = np.sin(2.0*np.pi*440*np.linspace(0.0, 1.0, sr)) &gt;&gt;&gt; librosa.output.write_wav(&quot;sin440.wav&quot;, y.astype(np.int16), sr) … librosa.util.exceptions.ParameterErro…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fmusic-analysis%2Flibrosa-wav-write-16-bit&quot; title=&quot;librosaにおける16-bitでのWAV書き出し (librosa.output.write_wav) - Wizard Notes&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20200901/20200901224327.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-01 23:10:02</published>
  <title>librosaにおける16-bitでのWAV書き出し (librosa.output.write_wav)</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/music-analysis/librosa-wav-write-16-bit</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
