AudioAlchemist


NameAudioAlchemist JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/Ryomo0797/AudioAlchemist.git
SummaryConvert all files directly under the directory to any music file.
upload_time2024-05-28 00:31:16
maintainerKohki Suto
docs_urlNone
authorKohki Suto
requires_pythonNone
licenseMIT
keywords audio pydub glob mp3 wav flac m4a audio_convert converter audio_converter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 日本語の説明

AudioAlchemistは、Pydubを利用した音声変換ツールです。WAVやm4aをMP3ファイルなどの形式に変換することができます。

## 機能

- WAVやm4aをMP3ファイルなどの形式に変換
- 複数のファイルをまとめて変換
- 変換後のファイル名をそのまま、もしくは連番で出力(処理を選択可能)
- 変換前のファイルはすべて残る

※連番で出力するか、拡張子だけ変更して名前を保持する方式を選べるように更新しました。

## インストール

```bash
pip3 install AudioAlchemist
```

## 使い方

### ライブラリのインポート

```python
import AudioAlchemist as aa
```

### 処理の設定

- `input_extension`: 変換したいファイルの拡張子('.'は不要)
- `output_extension`: 変換後のファイルの拡張子('.'は不要)
- `input_folder`: フォルダーの場所
  - 単一ファイルの場合: パスを 'C:/Users/data/melody/music.wav' のように設定
  - 複数ファイルの場合: パスを 'C:/Users/data/melody/*.wav' と設定('*'はワイルドカード)
- `output_folder`: 出力先のフォルダー場所
  - 新規フォルダーを指定すると自動生成される
- `audio_alchemist.process_files_index()`  :連番で出力したい場合
- `audio_alchemist.process_files_namekeep()`  :変換前の名前を残して出力したい場合
### 処理の実行

```python
# フォルダパスを設定
input_folder = 'C:/Users/data/melody/*.wav'
output_folder = 'C:/Users/data/melody/'
input_extension = "wav"
output_extension = "mp3"

# 変換処理を実行
audio_alchemist = aa.AudioAlchemist(input_folder, output_folder, input_extension, output_extension)
audio_alchemist.process_files_index()  # 連番で出力したい場合
audio_alchemist.process_files_namekeep()  # 変換前の名前を残して出力したい場合
```

このコマンドは、`C:/Users/data/melody` フォルダ内のすべてのWAVファイルをMP3ファイルに変換し、同じフォルダに出力します。

## 変換後の注意点

- 変換するファイルが存在していることを確認してください。
- 出力フォルダが存在していることを確認してください。
- 入力ファイルと出力ファイルの拡張子が一致していることを確認してください。

## サポート

バグ報告や機能リクエストは、GitHubのIssueトラッカーまたはメールにてご連絡ください。

## ライセンス

このプログラムは[MIT License](https://choosealicense.com/licenses/mit/)でライセンスされています。

## バージョン

0.8.0

# English explane

AudioAlchemist is a sound conversion tool that utilizes Pydub. It allows you to convert WAV and m4a files to various formats, including MP3.

## Features

- Convert WAV and m4a files to MP3 and other formats.
- Batch conversion for multiple files.
- Choose between output filenames with sequential numbering or preserving the original names.
- Original files remain untouched.

※Updated to allow selection between sequential numbering and preserving original names.

## Installation

```bash
pip3 install AudioAlchemist
```

## Usage

### Import the Library

```python
import AudioAlchemist as aa
```

### Configuration

- `input_extension`: Extension of the files to be converted (without the dot).
- `output_extension`: Extension for the converted files (without the dot).
- `input_folder`: Location of the folder.
  - For a single file: Specify the complete path, e.g., 'C:/Users/data/melody/music.wav'.
  - For multiple files: Use a wildcard, e.g., 'C:/Users/data/melody/*.wav'.
- `output_folder`: Destination folder.
  - If specifying a new folder, it will be automatically created.

### Execution

```python
# Set folder paths
input_folder = 'C:/Users/data/melody/*.wav'
output_folder = 'C:/Users/data/melody/'
input_extension = "wav"
output_extension = "mp3"

# Execute conversion process
audio_alchemist = aa.AudioAlchemist(input_folder, output_folder, input_extension, output_extension)
audio_alchemist.process_files_index()  # For sequential numbering
audio_alchemist.process_files_namekeep()  # To preserve original names
```

This command will convert all WAV files in the `C:/Users/data/melody` folder to MP3 files and output them in the same folder.

## Post-Conversion Notes

- Ensure that the files to be converted exist.
- Confirm that the output folder exists.
- Verify that the input and output file extensions match.

## Support

For bug reports or feature requests, please reach out via GitHub or email.

## License

This program is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

## Version

0.8.0

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Ryomo0797/AudioAlchemist.git",
    "name": "AudioAlchemist",
    "maintainer": "Kohki Suto",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "s2222019@stu.musashino-u.ac.jp",
    "keywords": "audio, pydub, glob, mp3, wav, flac, m4a, audio_convert, converter, audio_converter",
    "author": "Kohki Suto",
    "author_email": "s2222019@stu.musashino-u.ac.jp",
    "download_url": "https://files.pythonhosted.org/packages/f2/3b/ee3d05fd1384e91635c6b93d97d0befb2ff356f73b8d60148e2ca6337cbc/audioalchemist-0.8.0.tar.gz",
    "platform": null,
    "description": "# \u65e5\u672c\u8a9e\u306e\u8aac\u660e\r\n\r\nAudioAlchemist\u306f\u3001Pydub\u3092\u5229\u7528\u3057\u305f\u97f3\u58f0\u5909\u63db\u30c4\u30fc\u30eb\u3067\u3059\u3002WAV\u3084m4a\u3092MP3\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n\r\n## \u6a5f\u80fd\r\n\r\n- WAV\u3084m4a\u3092MP3\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u5f62\u5f0f\u306b\u5909\u63db\r\n- \u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u3068\u3081\u3066\u5909\u63db\r\n- \u5909\u63db\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u305d\u306e\u307e\u307e\u3001\u3082\u3057\u304f\u306f\u9023\u756a\u3067\u51fa\u529b\uff08\u51e6\u7406\u3092\u9078\u629e\u53ef\u80fd\uff09\r\n- \u5909\u63db\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3079\u3066\u6b8b\u308b\r\n\r\n\u203b\u9023\u756a\u3067\u51fa\u529b\u3059\u308b\u304b\u3001\u62e1\u5f35\u5b50\u3060\u3051\u5909\u66f4\u3057\u3066\u540d\u524d\u3092\u4fdd\u6301\u3059\u308b\u65b9\u5f0f\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002\r\n\r\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n\r\n```bash\r\npip3 install AudioAlchemist\r\n```\r\n\r\n## \u4f7f\u3044\u65b9\r\n\r\n### \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\r\n\r\n```python\r\nimport AudioAlchemist as aa\r\n```\r\n\r\n### \u51e6\u7406\u306e\u8a2d\u5b9a\r\n\r\n- `input_extension`: \u5909\u63db\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\uff08'.'\u306f\u4e0d\u8981\uff09\r\n- `output_extension`: \u5909\u63db\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\uff08'.'\u306f\u4e0d\u8981\uff09\r\n- `input_folder`: \u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u5834\u6240\r\n  - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408: \u30d1\u30b9\u3092 'C:/Users/data/melody/music.wav' \u306e\u3088\u3046\u306b\u8a2d\u5b9a\r\n  - \u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408: \u30d1\u30b9\u3092 'C:/Users/data/melody/*.wav' \u3068\u8a2d\u5b9a\uff08'*'\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\uff09\r\n- `output_folder`: \u51fa\u529b\u5148\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u5834\u6240\r\n  - \u65b0\u898f\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3068\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\r\n- `audio_alchemist.process_files_index()`  :\u9023\u756a\u3067\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\r\n- `audio_alchemist.process_files_namekeep()`  :\u5909\u63db\u524d\u306e\u540d\u524d\u3092\u6b8b\u3057\u3066\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\r\n### \u51e6\u7406\u306e\u5b9f\u884c\r\n\r\n```python\r\n# \u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\u3092\u8a2d\u5b9a\r\ninput_folder = 'C:/Users/data/melody/*.wav'\r\noutput_folder = 'C:/Users/data/melody/'\r\ninput_extension = \"wav\"\r\noutput_extension = \"mp3\"\r\n\r\n# \u5909\u63db\u51e6\u7406\u3092\u5b9f\u884c\r\naudio_alchemist = aa.AudioAlchemist(input_folder, output_folder, input_extension, output_extension)\r\naudio_alchemist.process_files_index()  # \u9023\u756a\u3067\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\r\naudio_alchemist.process_files_namekeep()  # \u5909\u63db\u524d\u306e\u540d\u524d\u3092\u6b8b\u3057\u3066\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\r\n```\r\n\r\n\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001`C:/Users/data/melody` \u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306eWAV\u30d5\u30a1\u30a4\u30eb\u3092MP3\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3057\u3001\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u51fa\u529b\u3057\u307e\u3059\u3002\r\n\r\n## \u5909\u63db\u5f8c\u306e\u6ce8\u610f\u70b9\r\n\r\n- \u5909\u63db\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n- \u51fa\u529b\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n- \u5165\u529b\u30d5\u30a1\u30a4\u30eb\u3068\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n## \u30b5\u30dd\u30fc\u30c8\r\n\r\n\u30d0\u30b0\u5831\u544a\u3084\u6a5f\u80fd\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001GitHub\u306eIssue\u30c8\u30e9\u30c3\u30ab\u30fc\u307e\u305f\u306f\u30e1\u30fc\u30eb\u306b\u3066\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002\r\n\r\n## \u30e9\u30a4\u30bb\u30f3\u30b9\r\n\r\n\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f[MIT License](https://choosealicense.com/licenses/mit/)\u3067\u30e9\u30a4\u30bb\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\n\r\n## \u30d0\u30fc\u30b8\u30e7\u30f3\r\n\r\n0.8.0\r\n\r\n# English explane\r\n\r\nAudioAlchemist is a sound conversion tool that utilizes Pydub. It allows you to convert WAV and m4a files to various formats, including MP3.\r\n\r\n## Features\r\n\r\n- Convert WAV and m4a files to MP3 and other formats.\r\n- Batch conversion for multiple files.\r\n- Choose between output filenames with sequential numbering or preserving the original names.\r\n- Original files remain untouched.\r\n\r\n\u203bUpdated to allow selection between sequential numbering and preserving original names.\r\n\r\n## Installation\r\n\r\n```bash\r\npip3 install AudioAlchemist\r\n```\r\n\r\n## Usage\r\n\r\n### Import the Library\r\n\r\n```python\r\nimport AudioAlchemist as aa\r\n```\r\n\r\n### Configuration\r\n\r\n- `input_extension`: Extension of the files to be converted (without the dot).\r\n- `output_extension`: Extension for the converted files (without the dot).\r\n- `input_folder`: Location of the folder.\r\n  - For a single file: Specify the complete path, e.g., 'C:/Users/data/melody/music.wav'.\r\n  - For multiple files: Use a wildcard, e.g., 'C:/Users/data/melody/*.wav'.\r\n- `output_folder`: Destination folder.\r\n  - If specifying a new folder, it will be automatically created.\r\n\r\n### Execution\r\n\r\n```python\r\n# Set folder paths\r\ninput_folder = 'C:/Users/data/melody/*.wav'\r\noutput_folder = 'C:/Users/data/melody/'\r\ninput_extension = \"wav\"\r\noutput_extension = \"mp3\"\r\n\r\n# Execute conversion process\r\naudio_alchemist = aa.AudioAlchemist(input_folder, output_folder, input_extension, output_extension)\r\naudio_alchemist.process_files_index()  # For sequential numbering\r\naudio_alchemist.process_files_namekeep()  # To preserve original names\r\n```\r\n\r\nThis command will convert all WAV files in the `C:/Users/data/melody` folder to MP3 files and output them in the same folder.\r\n\r\n## Post-Conversion Notes\r\n\r\n- Ensure that the files to be converted exist.\r\n- Confirm that the output folder exists.\r\n- Verify that the input and output file extensions match.\r\n\r\n## Support\r\n\r\nFor bug reports or feature requests, please reach out via GitHub or email.\r\n\r\n## License\r\n\r\nThis program is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\r\n\r\n## Version\r\n\r\n0.8.0\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Convert all files directly under the directory to any music file.",
    "version": "0.8.0",
    "project_urls": {
        "Download": "https://github.com/Ryomo0797/AudioAlchemist.git",
        "Homepage": "https://github.com/Ryomo0797/AudioAlchemist.git"
    },
    "split_keywords": [
        "audio",
        " pydub",
        " glob",
        " mp3",
        " wav",
        " flac",
        " m4a",
        " audio_convert",
        " converter",
        " audio_converter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ec78f20bf5d3f197df243e646b6050304858a48f35df8fdac1328ff62c8a6db",
                "md5": "ba9bab0098905d7c04c5e4d061fb0af7",
                "sha256": "9df83854af980f734097c9ca6d9a888c32b0c3220e35b2e658dfa3b83c559b89"
            },
            "downloads": -1,
            "filename": "AudioAlchemist-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ba9bab0098905d7c04c5e4d061fb0af7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4379,
            "upload_time": "2024-05-28T00:31:14",
            "upload_time_iso_8601": "2024-05-28T00:31:14.530127Z",
            "url": "https://files.pythonhosted.org/packages/5e/c7/8f20bf5d3f197df243e646b6050304858a48f35df8fdac1328ff62c8a6db/AudioAlchemist-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f23bee3d05fd1384e91635c6b93d97d0befb2ff356f73b8d60148e2ca6337cbc",
                "md5": "a6d3c26374c3a4812c52cea849825417",
                "sha256": "bf849a19ef28390abfb42e855afbc425d12a58f936ccce81b7b9a501f212ba47"
            },
            "downloads": -1,
            "filename": "audioalchemist-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a6d3c26374c3a4812c52cea849825417",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4203,
            "upload_time": "2024-05-28T00:31:16",
            "upload_time_iso_8601": "2024-05-28T00:31:16.242007Z",
            "url": "https://files.pythonhosted.org/packages/f2/3b/ee3d05fd1384e91635c6b93d97d0befb2ff356f73b8d60148e2ca6337cbc/audioalchemist-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-28 00:31:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ryomo0797",
    "github_project": "AudioAlchemist",
    "github_not_found": true,
    "lcname": "audioalchemist"
}
        
Elapsed time: 0.26069s