Reprodutor de áudio para estudo de inglês.
Project description
AudIng Reprodutor de Áudio
Estrutura do Projeto
.
├── audig
│ ├── __init__.py
│ ├── main.py
│ ├── mixer.py
│ └── paths.py
├── poetry.lock
├── pyproject.toml
├── README.md
├── tests
│ └── __init__.py
└── utils
└── demo.png
Dependências
❯ poetry show --tree
audioread 3.0.0 multi-library, cross-platform audio decoding
autopep8 2.0.2 A tool that automatically formats Python code to conform to the PEP 8 style guide
├── pycodestyle >=2.10.0
└── tomli *
flake8 6.0.0 the modular source code checker: pep8 pyflakes and co
├── mccabe >=0.7.0,<0.8.0
├── pycodestyle >=2.10.0,<2.11.0
└── pyflakes >=3.0.0,<3.1.0
mypy 1.1.1 Optional static typing for Python
├── mypy-extensions >=1.0.0
├── tomli >=1.1.0
└── typing-extensions >=3.10
pygame 2.2.0 Python Game Development
Código Exemplo
from audig import Caminhos
from audig import TocarAudios
from typing import List
def run(path: str, sub_dirs: List[str]) -> None:
"""
Método executa o reprodutor de áudio.
Args:
path: Caminho absoluto do diretório raiz.
sub_dirs: subdiretórios do diretório raiz.
Returns:
Não retorna nada.
"""
# Instanciando um objeto Caminhos
caminhos = Caminhos(path=path, subdirs=sub_dirs)
# obtendo os caminhos absolutos dos arquivos de áudios.
paths_abs = caminhos.get_paths()
toca_audios = TocarAudios(paths_abs=paths_abs)
toca_audios.ouvir_lista()
if __name__ == "__main__":
# Diretório raiz do curso.
path = "home/usuario1/seu_diretorio_raiz"
# Subdiretórios a serem listado os áudios
sub_dirs = ["nome_subpasta1", "nome_subpasta2",
"nome_subpasta3", "nome_subpastax"]
run(path=path, sub_dirs=sub_dirs)
Demostração Código
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
audig-0.2.0.tar.gz
(3.5 kB
view details)
Built Distribution
audig-0.2.0-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file audig-0.2.0.tar.gz
.
File metadata
- Download URL: audig-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa624088adb43f4c6eb1ed112f9e027e6db42d06b047096216372c83dc7f4b3 |
|
MD5 | 41f58812f599df33582b559e2eb31ce9 |
|
BLAKE2b-256 | e01a443f4de851a4f91e1868a3c687f262dc7b10619c4bcb8d700c222ce9471d |
File details
Details for the file audig-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: audig-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7c9ac7d09f0ac9d53c9bb5d7d9d8b245ab815ac013772bc05b75e5c1176064 |
|
MD5 | fa1071f2ec29a6de2e90c4645150f0af |
|
BLAKE2b-256 | ea3d183b49721c4ce775d8e63d0d1f311ca4bcc8502782e4dee7ed91930a4bb1 |