搜尋
首頁後端開發Python教學從音訊歌曲中刪除人聲和音樂(簡單)

Removing Vocals & Music from Audio Songs (easy peasy)

介紹

Spleeter 是 Deezer 開發的一款用於音源分離的開源工具,允許使用者從音軌中分離人聲和伴奏。本指南概述了在 Windows Subsystem for Linux (WSL) 環境中設定 Spleeter 並使用它從音訊檔案中刪除人聲的步驟。

先決條件

  • WSL:確保您的 Windows 電腦上安裝了 WSL。
  • Python:您的 WSL 環境中應安裝 Python 3。
  • Pip:Python 套件管理器應該可用。

逐步指南

第 1 步:安裝所需的軟體包

  1. 更新包裝清單
   sudo apt update
  1. 安裝 Python 和 Pip(如果尚未安裝):
   sudo apt install python3 python3-pip
  1. 安裝 Spleeter
   pip install spleeter
  1. 安裝附加相依性: 為了確保相容性,請安裝特定版本的 NumPy:
   pip install 'numpy



<ol>
<li>
<strong>升級 Spleeter</strong>(如有必要):
</li>
</ol>

<pre class="brush:php;toolbar:false">   pip install --upgrade spleeter

第2步:安裝FFmpeg

Spleeter 需要 FFmpeg 進行音訊處理。使用以下指令安裝:

sudo apt install ffmpeg

第 3 步:準備音訊文件

確保可以從 WSL 存取您的音訊檔案。例如,如果您的音訊檔案位於 E:pathaudio.mp3,您可以在 WSL 中存取它:

/mnt/e/path/audio.mp3

第四步:運行 Spleeter 來分離人聲

使用以下指令將人聲與音訊檔案分開:

python3 -m spleeter separate -i /mnt/e/path/audio.mp3 -o /mnt/e/path/output

第 5 步:檢查輸出

執行指令後,檢查輸出目錄(/mnt/e/path/output)。您應該找到兩個音訊檔案:

  • vocals.wav:包含孤立的人聲。
  • accompaniment.wav:包含樂器部分。

結論

您已在 WSL 環境中成功設定 Spleeter 並使用它從音訊檔案中刪除人聲。這個強大的工具可用於各種音訊處理任務,使其成為音樂家、製作人和音訊愛好者的寶貴資源。

以上是從音訊歌曲中刪除人聲和音樂(簡單)的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
Python:深入研究彙編和解釋Python:深入研究彙編和解釋May 12, 2025 am 12:14 AM

pythonisehybridmodeLofCompilation和interpretation:1)thepythoninterpretercompilesourcecececodeintoplatform- interpententbybytecode.2)thepythonvirtualmachine(pvm)thenexecutecutestestestestestesthisbytecode,ballancingEaseofuseEfuseWithPerformance。

Python是一種解釋或編譯語言,為什麼重要?Python是一種解釋或編譯語言,為什麼重要?May 12, 2025 am 12:09 AM

pythonisbothinterpretedAndCompiled.1)它的compiledTobyTecodeForportabilityAcrosplatforms.2)bytecodeisthenInterpreted,允許fordingfordforderynamictynamictymictymictymictyandrapiddefupment,儘管Ititmaybeslowerthananeflowerthanancompiledcompiledlanguages。

對於python中的循環時循環與循環:解釋了關鍵差異對於python中的循環時循環與循環:解釋了關鍵差異May 12, 2025 am 12:08 AM

在您的知識之際,而foroopsareideal insinAdvance中,而WhileLoopSareBetterForsituations則youneedtoloopuntilaconditionismet

循環時:實用指南循環時:實用指南May 12, 2025 am 12:07 AM

ForboopSareSusedwhenthentheneMberofiterationsiskNownInAdvance,而WhileLoopSareSareDestrationsDepportonAcondition.1)ForloopSareIdealForiteratingOverSequencesLikelistSorarrays.2)whileLeleLooleSuitableApeableableableableableableforscenarioscenarioswhereTheLeTheLeTheLeTeLoopContinusunuesuntilaspecificiccificcificCondond

Python:它是真正的解釋嗎?揭穿神話Python:它是真正的解釋嗎?揭穿神話May 12, 2025 am 12:05 AM

pythonisnotpuroly interpred; itosisehybridablectofbytecodecompilationandruntimeinterpretation.1)PythonCompiLessourceceCeceDintobyTecode,whitsthenexecececected bytybytybythepythepythepythonvirtirtualmachine(pvm).2)

與同一元素的Python串聯列表與同一元素的Python串聯列表May 11, 2025 am 12:08 AM

concatenateListSinpythonWithTheSamelements,使用:1)operatoTotakeEpduplicates,2)asettoremavelemavphicates,or3)listcompreanspherensionforcontroloverduplicates,每個methodhasdhasdifferentperferentperferentperforentperforentperforentperfornceandordorimplications。

解釋與編譯語言:Python的位置解釋與編譯語言:Python的位置May 11, 2025 am 12:07 AM

pythonisanterpretedlanguage,offeringosofuseandflexibilitybutfacingperformancelanceLimitationsInCricapplications.1)drightingedlanguageslikeLikeLikeLikeLikeLikeLikeLikeThonexecuteline-by-line,允許ImmediaMediaMediaMediaMediaMediateFeedBackAndBackAndRapidPrototypiD.2)compiledLanguagesLanguagesLagagesLikagesLikec/c thresst

循環時:您什麼時候在Python中使用?循環時:您什麼時候在Python中使用?May 11, 2025 am 12:05 AM

Useforloopswhenthenumberofiterationsisknowninadvance,andwhileloopswheniterationsdependonacondition.1)Forloopsareidealforsequenceslikelistsorranges.2)Whileloopssuitscenarioswheretheloopcontinuesuntilaspecificconditionismet,usefulforuserinputsoralgorit

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

SublimeText3 英文版

SublimeText3 英文版

推薦:為Win版本,支援程式碼提示!

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

SecLists

SecLists

SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

MantisBT

MantisBT

Mantis是一個易於部署的基於Web的缺陷追蹤工具,用於幫助產品缺陷追蹤。它需要PHP、MySQL和一個Web伺服器。請查看我們的演示和託管服務。

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器