Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pydubをさわろう
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
高見知英
September 08, 2021
Programming
660
0
Share
Pydubをさわろう
2021/09/08 みんなのPython勉強会 #73 で発表した資料です。
高見知英
September 08, 2021
More Decks by 高見知英
See All by 高見知英
ポッドキャストをはじめよう ポッドキャストのやりかたと続けるコツ
takamichie
0
110
高見知英とAndroid
takamichie
0
96
大人になってからのゲームデビューのハナシ
takamichie
0
89
最近のゲーム実況のハナシ
takamichie
0
110
健常者から見たAndroidのアクセシビリティ機能
takamichie
0
520
山手縁乃庭のいまとこれから考えていること
takamichie
0
160
子どもとゲームとそのほかいろいろのハナシ
takamichie
0
160
高見知英のヒストリー
takamichie
0
130
SRPGがやりたい!
takamichie
0
260
Other Decks in Programming
See All in Programming
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
440
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
280
ハーネスエンジニアリングとは?
kinopeee
11
5.6k
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
140
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
180
JOAI2026 1st solution - heron0519 -
heron0519
0
140
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
270
Don't Prompt Harder, Structure Better
kitasuke
0
770
🦞OpenClaw works with AWS
licux
1
140
感情を設計する
ichimichi
5
1.5k
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
260
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
Ethics towards AI in product and experience design
skipperchong
2
260
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
170
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Accessibility Awareness
sabderemane
1
100
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
Mobile First: as difficult as doing things right
swwweet
225
10k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
Music & Morning Musume
bryan
47
7.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
Transcript
Pydubをさわろう NPO法人 まちづくりエージェント SIDE BEACH CITY. 高見知英
高見知英です! フリーランス プログラマ 書籍製作 Udemy動画 IT利活用支援 SBCast. SBC.オープンマイク 地域 オンラインイベント
まちづくり エージェント SIDE BEACH CITY. 2021年9月8日 Pydubをさわろう 2
Pydubとは Pythonで音声ファイルを操作するためのライブラリ 音声を切り分けたり、音量を調整したり、 ループさせることが可能 Pure Python • 内部で使用しているのはaudiloopというPython標準ライブラリ 2021年9月8日 Pydubをさわろう
3
事例 2021年9月8日 Pydubをさわろう 4
基本的な使い方 • wav, mp4, ogg, wmaなど • 一部ファイル読み込みにはffmpegが必要 読み込める ファイル
• AudioSegmentオブジェクトで音声を管理 • 他セグメントと結合・部分切り出し可能 • ボリュームの調整も可能 使い方 2021年9月8日 Pydubをさわろう 5
作例 • stand.fm用の音声にBGMを付与するツール • https://github.com/TakamiChie/standfm_bgm • カバーアートの作成ツールと合わせて音声をstand.fmにアップロードする準備 • https://github.com/TakamiChie/standfm_photo 2021年9月8日
Pydubをさわろう 6
今後に向けて • pydub.playbackにもplay()メソッドが あるがこれを呼んでいる simpleaudioで 再生も可能 • タイミングで伴奏の違う曲にスイッチ • 状況に合わせて幾つかの音楽を組み替
える インタラクティ ブミュージック も再生可能? 2021年9月8日 Pydubをさわろう 7
おわり ご静聴ありがとうございました