介紹
Spleeter 是 Deezer 開發的一款用於音源分離的開源工具,允許使用者從音軌中分離人聲和伴奏。本指南概述了在 Windows Subsystem for Linux (WSL) 環境中設定 Spleeter 並使用它從音訊檔案中刪除人聲的步驟。
先決條件
- WSL:確保您的 Windows 電腦上安裝了 WSL。
- Python:您的 WSL 環境中應安裝 Python 3。
- Pip:Python 套件管理器應該可用。
逐步指南
第 1 步:安裝所需的軟體包
- 更新包裝清單:
sudo apt update
- 安裝 Python 和 Pip(如果尚未安裝):
sudo apt install python3 python3-pip
- 安裝 Spleeter:
pip install spleeter
- 安裝附加相依性: 為了確保相容性,請安裝特定版本的 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中文網其他相關文章!

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

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

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

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

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

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

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

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


熱AI工具

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

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

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

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

熱門文章

熱工具

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

禪工作室 13.0.1
強大的PHP整合開發環境

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

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

VSCode Windows 64位元 下載
微軟推出的免費、功能強大的一款IDE編輯器