Upgrade to Pro — share decks privately, control downloads, hide ads and more …

音声情報処理に便利な (Python) パッケージやソフトウェア

Akira Tamamori
December 30, 2020

音声情報処理に便利な (Python) パッケージやソフトウェア

Tokyo BISH Bashの資料から独立させたもの

Akira Tamamori

December 30, 2020
Tweet

More Decks by Akira Tamamori

Other Decks in Research

Transcript

  1. TPYQZTPY • ίϚϯυϥΠϯ͔ΒϑΥʔϚοτม׵ͳͲΛ͓खܰʹ • ϑΥʔϚοτม׵ʢwav to mp3 ͳͲʣ • ݁߹΍ϛοΫεɺτϦϛϯά

    ΋Մೳ • όονॲཧ΋ָʢγΣϧεΫϦϓτͳͲʣ • Pythonϥούʔ pysox΋͋Δ • Πϯετʔϧ • brew install sox ͳͲ • pip install sox ← pysox ͷΠϯετʔϧ͸͜Ε 2
  2. 1Z8PSME • Ի੠ͷ෼ੳ࠶߹੒Λߦ͏Ϙίʔμʔͷύοέʔδ • Ի੠Λʮ੠৭ɾ੠ͷߴ͞ɾ੠ͷ͔͢Εʯͷ֤੒෼ʹ෼ղ͠࠶߹੒ • C++൛ͷPythonϥούʔ • Ի੠ͷಛ௃ྔநग़ʹ΋࢖͑ͯศར ⇒

    PySPTKʢޙड़ʣΑΓ΋඼࣭ͷΑ͍εϖΫτϧแབྷ • Πϯετʔϧ pip install pyworld • ެࣜϖʔδ https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder 4
  3. 1Z"VEJP • ετϦʔϜ࿥Ի / ࠶ੜʹศརͳύοέʔδ • ϦΞϧλΠϜͷԻ੠ೖྗɾԻ੠ग़ྗʹ࢖͑Δ • ϦΞϧλΠϜԻ੠ม׵ with

    PythonͳͲ΋Մೳ • Πϯετʔϧ • pip install pyaudio ※ཁportaudio (e.g., brew install portaudio) 5
  4. 1Z"VEJPͱ1Z8PSMEͷ૊Έ߹Θͤ • ؆қ൛ͷϘΠενΣϯδϟʔ • ؆қϘΠενΣϯδϟʔͷεΫϦϓτΛվྑɿPyQt5ͷεϥΠμʔʹΑΓ ϐονͱϑΥϧϚϯτΛϦΞϧλΠϜௐ੔͢ΔػೳΛ௥Ճʢฐϒϩάʣ • banibiku • Zoom഑৴޲͚ʹ̎࣍ݩΩϟϥʹͳΓ͖Δ͜ͱΛ໨ࢦͨ͠ϓϩδΣΫτ

    • scripts/voice_converter.py ͕ྑ͍ײ͡ͷϘΠενΣϯδϟʔ → ฐϒϩάͷαϯϓϧεΫϦϓτͷόάϑΟοΫεؚ͕·ΕΔ 6 https://tam5917.hatenablog.com/entry/2019/04/30/213321 https://github.com/peisuke/babiniku
  5. OONOLXJJ <OBOBNJO LBXBJJ> • DNNԻ੠߹੒ʹ໾ཱͭϞδϡʔϧΛूΊͨύοέʔδ • ͲͪΒ͔ͱ͍͏ͱݚڀ༻్ • લॲཧ΍Իڹಛ௃ྔநग़ͷΫϥε͕Ұ௨Γଗ͍ͬͯΔ •

    ࿦จͷ࠶ݱ࣮૷Λ͢Δͱ͖ͳͲʹେ͍ʹ໾ཱͭ • Πϯετʔϧ pip install nnmnkwii • ެࣜϖʔδ https://r9y9.github.io/nnmnkwii/stable/index.html 8
  6. 1ZEVC • Pydub • ೾ܗฤूʹศརͳϞδϡʔϧΛूΊͨύοέʔδ • αϙʔτ͢ΔϑΝΠϧܗࣜ΋๛෋ʢwav, mp3, mp4, wma,

    aac, ...ʣ • ػೳ ੾Γग़͠ɺ෼ׂɺϛοΫεɺϑΣʔυΠϯΞ΢τɺແԻૠೖɺͳͲͳͲ • Ұ෦ͷػೳ͸ pysoxͷ΄͏͕ߴ଎ͱ͍͏ӟ?ʢະ֬ೝʣ • Πϯετʔϧ pip install pydub • ެࣜϖʔδ http://pydub.com/ 9
  7. TQSPDLFU • ౷ܭత੠࣭ม׵ͷͨΊͷπʔϧΩοτ (not ύοέʔδ) • ͲͪΒ͔ͱ͍͏ͱݚڀ༻ ʢMITϥΠηϯεʣ • ݚڀͷʮϕʔεϥΠϯʯߏஙʹ࠷ద

    • ެࣜϖʔδ https://github.com/k2kobayashi/sprocket • ղઆ࿦จ ʰ౷ܭత੠࣭ม׵ιϑτ΢ΣΞೖ໳ʱ https://www.jstage.jst.go.jp/article/isciesci/62/2/62_69/_article/-char/ja/ • νϡʔτϦΞϧ (εϥΠυ & notebook) https://github.com/kan-bayashi/INTERSPEECH19_TUTORIAL 10