Sentence mixing
Project description
Sentence mixing
This library is used to analyze and smartly reorder phonems of an audio sequence to form any desired sentence. The goal of this library is to generate Sentence Mixing Youtube poops (example).
Entry file is sentence_mixer.py.
Here are examples of applications based on the library:
MFA
SM library is using Montreal Forced Aligner, a powerful tool used to timestamp words and phonems in a subtitled audio file.
Installing MFA
- Download release executable version 1.1.0 Beta 2
- Extract it as
Montreal-Forced-Aligner
JSON config file
To use the library, you have to provide a json configuration file. Here are all the fields to add into it:
dict_path: Path to dictionnary file. This dictionnary associates every words of a language to associated phonemsalign_exe: MFA executable filetrained_model: pre-trained model MFA will use. Should be a ZIP filelang: language. Only 'fr' is supported nowdict_consonant_vowel_path: Path to dictionary declaring the consonant and vowel phonemsfolder: Folder where the Youtube subtitles will be stored
This config file should be passed through the function prepare_sm_config_file
Recommended config.json
dict_path: For french users, usefr.dictfrom SM-Dictionaries repoalign_exe:Montreal-Forced-Aligner/bin/mfa_aligntrained_model: Choose one of the MFA pretrained model. For french users, use prosodylab version.dict_consonant_vowel_path: For french users, usefr_consonant_vowel.dictfrom SM-Dictionaries repo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentence_mixing-1.1.4.tar.gz.
File metadata
- Download URL: sentence_mixing-1.1.4.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e580562844aa6115c006d7becf38a860f6de0e29e493ffde71c1b1b7cf12a3
|
|
| MD5 |
f3111e8e8be82b17734650f651ec5b8e
|
|
| BLAKE2b-256 |
ebdd258234059f33b4a35229a9fdf438255d1b95e5a4277e789687c55badcea6
|
File details
Details for the file sentence_mixing-1.1.4-py2.py3-none-any.whl.
File metadata
- Download URL: sentence_mixing-1.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5387566ff6f07bd0c246fe51e97a65cb746fd3704818ba48f292234db2697f05
|
|
| MD5 |
1d96e30755d021efd600e3d7dfeab7f6
|
|
| BLAKE2b-256 |
ffd1ea29786fbfcc7a2d250f8c519e6403bdc5ed74cd765dbf649ec1debae67a
|