[Dev][Golang] 動画から音声を抽出する、サーバ版

in #japanese3 days ago

こんにちは、@yasuです。

動画のURLを渡して、音声ファイルを受け取るサーバを作成してみた。

また、ChatGPTに協力してもらいました。

音声ファイル取得URL

curl -OJ -X POST http://localhost:8080/stream -H "Content-Type: application/json" -d "{\"url\":\"https://youtu.be/pZuW2CV0mXY?si=a6kGBIjbuEGuz58x\"}"

image.png

getVideoInfo
image.png

downloadStreamHandler
image.png
image.png