Skip to main content

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

demo

Metadata

Release files for audig 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audig 0.2.0
File Size Uploaded
audig-0.2.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for audig 0.2.0
File Interpreter ABI Platform
audig-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / audig-0.2.0.tar.gz

Download URL audig-0.2.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8aa624088adb43f4c6eb1ed112f9e027e6db42d06b047096216372c83dc7f4b3
BLAKE2b-256 checksum
How to use checksums
e01a443f4de851a4f91e1868a3c687f262dc7b10619c4bcb8d700c222ce9471d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic

Release files / audig-0.2.0-py3-none-any.whl

Download URL audig-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c7c9ac7d09f0ac9d53c9bb5d7d9d8b245ab815ac013772bc05b75e5c1176064
BLAKE2b-256 checksum
How to use checksums
ea3d183b49721c4ce775d8e63d0d1f311ca4bcc8502782e4dee7ed91930a4bb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page