GitXplorerGitXplorer
m

wavmerger

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
9d3408bb69a1f8ade6c152259090ecfced530c96

rename concat to merge

mmoreaupascal56 committed 5 months ago
Unverified
7cfef856db07fbf2a97e4348ccd14a484515446f

upd Readme

mmoreaupascal56 committed 5 months ago
Verified
f47e03d23c19c580c8571454bb34745545b8fbe5

Merge pull request #2 from moreaupascal56/add-concat_wav_in_dir-fct

mmoreaupascal56 committed 5 months ago
Unverified
913ac17b5e765f90db3581c6e47307d51fe6e61e

lint

mmoreaupascal56 committed 5 months ago
Unverified
6de9822e8c2a198d64c8f6cf5b7316f4e961f7b4

add __init__.py

mmoreaupascal56 committed 5 months ago
Unverified
f501fe8165947f67b98e55dd05b02c32e4b254d5

poetry: add logging

mmoreaupascal56 committed 5 months ago

README

The README file for this repository.

WavMerger: .wav file merger

This is a library to concatenate (merge) .wav files. For example if you used the google text-to-speech API on several .txt, resulting into several .wav files and you want to concatenate everything into a single (big) .wav file

It was originally made because of a small use-case I had.

If anybody want to use it or suggest a new use case by adding features feel free to open an issue, it would be a pleasure to answer!

Use cases

Merge all .wav files from a directory

To merge all .wav file from a directory, use the merge_wav_in_dir function.

Example from the tests: There is several .wav files in tests/integration/data/PinkPanther30/splitted directory. In order to merge them to a single file do:

from wavmerger import merge_wav_in_dir

merge_wav_in_dir(
    dirpath = "tests/integration/data/PinkPanther30/splitted",
    write_file_name = "YOUR-OUTPUT-FILE-NAME",
    write_file_dir = "YOUR-OUTPUT-FILE-DIR",
)