- このツールは指定されたフォルダ内の音源ファイル(例: .wav, .flac, .mp3)を選択されたサンプリングレートに変換し、変換後のファイルを同じフォルダ内に「resampled_」というプレフィックスを付けて保存します。
-
このツールはPython 3で動作します。Python 3がインストールされていない場合は、公式サイトからダウンロードしてインストールしてください。Python公式サイト
-
また、このツールはオーディオファイルの読み取りと書き込みに
ffmpegを使用する場合があります。ffmpegがインストールされていない場合は、公式サイト からダウンロードしてインストールしてください。
-
次のコマンドを使用して、必要なPythonライブラリをインストールします。
pip install gradio soundfile numpy resampy pydub
-
ツールのPythonスクリプト(
exchange_sampling_rate.pyなど)をダウンロードまたはクローンします。 -
コマンドプロンプトまたはターミナルを開き、スクリプトが保存されているディレクトリに移動します。
例:
cd path/to/directory -
次のコマンドを実行して、ツールを起動します。
python exchange_sampling_rate.py -
ブラウザが自動的に開かず、
Running on local URL: http://127.0.0.1:xxxxというメッセージが表示された場合、ブラウザを手動で開き、表示されたURLを入力してアクセスしてください。 -
インターフェース上で、変換したいオーディオファイルが保存されているディレクトリのパスを入力します。
-
ターゲットとなるサンプリングレートをドロップダウンメニューから選択します。
-
"送信" ボタンをクリックすると、指定したディレクトリ内のオーディオファイルのサンプリングレートが選択したレートに変換され、元のディレクトリに
resampled_というプレフィックスを持つファイル名で保存されます。
-
もし、MP3ファイルの読み取りや書き込みに問題が発生した場合は、
ffmpegが正しくインストールされているかを確認してください。 -
何らかのエラーメッセージが表示された場合は、そのエラーメッセージをメモして、サポートにお問い合わせください。
This tool converts audio files (e.g., .wav, .flac, .mp3) within a specified folder to the chosen sampling rate, and saves the converted files in the same folder with a "resampled_" prefix.
-
This tool operates on Python 3. If you haven't installed Python 3, download and install it from the official website: Python Official Site.
-
The tool might utilize
ffmpegfor reading and writing audio files. If you don't haveffmpeginstalled, download and set it up from the Official Site.
-
Use the following command to install the necessary Python libraries:
pip install gradio soundfile numpy resampy pydub
-
Download or clone the Python script for the tool (e.g.,
exchange_sampling_rate.py). -
Open your command prompt or terminal and navigate to the directory where the script is saved.
Example:
cd path/to/directory -
Run the following command to launch the tool:
python exchange_sampling_rate.py -
If the browser doesn't open automatically and you see a message like
Running on local URL: http://127.0.0.1:xxxx, manually open your browser and input the provided URL to access the tool. -
On the interface, input the directory path where the audio files you wish to convert are stored.
-
Choose the desired target sampling rate from the dropdown menu.
-
Click on the "Submit" button. The audio files in the provided directory will be converted to the chosen sampling rate and saved back in the original directory with a
resampled_prefix in their filename.
-
If you encounter issues with reading or writing MP3 files, ensure
ffmpegis correctly installed. -
If any error messages appear, take note of them and contact support for further assistance.