<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>matsu7874</author_name>
  <author_url>https://blog.hatena.ne.jp/matsu7874/</author_url>
  <blog_title>matsu7874のブログ</blog_title>
  <blog_url>https://matsu7874.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>音声ファイルから無音部分をトリミングして保存するプログラムを書きました。 実装方法 pydubというライブラリを使います。 silencesplit_on_silenceという（ str.split() のような）無音部分を削除する関数が用意されています。 ソースコード recording-file.m4aというファイルから無音部分を削除してsilence_removed_-20.mp3などの名前で保存するプログラムです。 from pydub import AudioSegment from pydub.silence import split_on_silence SOURCE_FILE …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmatsu7874.hatenablog.com%2Fentry%2F2021%2F10%2F16%2F011759&quot; title=&quot;pydub.split_on_silence を使ってm4a,mp3,wavの無音部分を削除する - matsu7874のブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-16 01:17:59</published>
  <title>pydub.split_on_silence を使ってm4a,mp3,wavの無音部分を削除する</title>
  <type>rich</type>
  <url>https://matsu7874.hatenablog.com/entry/2021/10/16/011759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
