FoxDotShabda - Interface with shabda for audio samples and text speech
Instalation
pip install FoxDotShabda
# or
pip install git+https://codeberg.org/FoxDotExtensions/FoxDotShabda
Usage
Import lib
from FoxDotShabda import samples, speech
samples(definition: str)
Fetch random samples from freesound
Any word can be a pack definition. If you want more than one sample,
separate words by a comma: "blue,red"
You can define how many variations of a sample to assemble by adding a colon and a number. e.g. blue,red:3,yellow:2 will produce one 'blue' sample, three 'red' samples and two 'yellow' sample.
samples('bass:4,hihat:4,rimshot:2')
will print in the terminal when finished downloading
s1 >> loop('bass', dur=PDur(3,8), sample=2)
s2 >> loop('hihat', dur=10, sus=2)
s3 >> loop('rimshot', dur=PDur(7,9)*8, sample=2)
speech(words: str, language: str = 'en-GB', gender: str = 'f')
Generate Text-to-Speech samples.
If you want more than one sample, separate words by a comma: "hello,bye"
If you want a sentence, separate it with _: "eita_carai,oi"
By default the language is en-GB but you can change this.
The gender of the voice unfortunately can be f and m.
If you only want to change the gender, use the following syntax
speech('baby', gender='m')
speech('what')
speech('voa,ai','pt-BR')
speech('eita_carai,continua','pt-BR','m')
will print in the terminal when finished downloading
v1 >> loop('eita_carai', dur=4, pan=[-5,0,1,0])
v2 >> loop('voa', dur=PDur(3,8), pan=[0,1,0,-5])
v3 >> loop('ai', dur=4, pan=[1,0,-5,0])
v4 >> loop('continua', dur=var([PDur(3,8), 6], [7,1]), pan=[0,1,0,-5])
v5 >> loop('what', dur=8, sus=2, pan=[0,1,0,-5])
Metadata
Release files for FoxDotShabda 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foxdotshabda-0.1.1.tar.gz | 7.4 kB | Without provenance | Details for foxdotshabda-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foxdotshabda-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for foxdotshabda-0.1.1-py3-none-any.whl |
Total release size: 16.0 kB
Release files / foxdotshabda-0.1.1.tar.gz
| Download URL | foxdotshabda-0.1.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce1e3ca00f6fa6e89d2fbc4126028f3a523d80a29b20cb1c8de8169aa45bf68d
|
|
BLAKE2b-256 checksum How to use checksums |
be134cc32e0354d08149b9c5ba1e5532afc0ad3a759cb0cad65190c4458be908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
|
Release files / foxdotshabda-0.1.1-py3-none-any.whl
| Download URL | foxdotshabda-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a8ec2a3a84447458f45d419b62d8064289fa9ebab62ea4dce1a678a4deb3194
|
|
BLAKE2b-256 checksum How to use checksums |
0ffcce4d5e53b7d07352a9c555c7cb32d176c7300de7882e8b62bc181ce4b690
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
|
Security for FoxDotShabda 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.