https://github.com/lucasfturos/convertimagetoaudio
Converte imagem em áudio.
https://github.com/lucasfturos/convertimagetoaudio
cpp rust
Last synced: 2 months ago
JSON representation
Converte imagem em áudio.
- Host: GitHub
- URL: https://github.com/lucasfturos/convertimagetoaudio
- Owner: lucasfturos
- Created: 2024-05-08T19:30:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T01:32:37.000Z (over 1 year ago)
- Last Synced: 2025-02-06T07:46:09.521Z (over 1 year ago)
- Topics: cpp, rust
- Language: C++
- Homepage:
- Size: 887 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert Image to Audio
Converte imagens em áudio.
O programa só aceita como saída áudios no formato FLAC, OGG e WAV.
Feito em C++.
Tem a versão em Rust no arquivo `rust-version`.
## Instalação e Execução
### Requisitos
- CMake
- GCC/G++
- Make
- SndFile
- stb
- Alsa
### Instruções:
1. Clone o repositório:
```
git clone https://github.com/lucasfturos/ConvertImageToAudio.git && cd ConvertImageToAudio
```
2. Crie a pasta build:
```
cmake -S . -B build && cd build
```
3. Compile o programa:
```
make
```
4. Execute o programa:
```
./src/ConvertImageToAudio caminha/da/imagem.{jpg, png, etc} caminho/de/saída/do/audio.{flac, ogg, wav}
```
- Exemplo de uso:
```
./src/ConvertImageToAudio assets/img/image.png assets/audio/out.wav 1 500.0 100 save
```
**Nota:** O tempo máximo de duração é de 100s.
5. Arquivo `build.sh`:
O arquivo build.sh tem todas instruções para usar. Mas, caso tenha dúvidas, execute o comando `./build.sh -h` para receber mais informações. Ele automatiza os comandos explicados acima.
**Aviso:** É necessário ter instalado o Audacity caso queira usar a função `./build.sh -a`.
## Screenshot
**Parâmetros:**
- Ganho: 200 dB.
- Escala: Linear.
### Tela do Audacity.

## Créditos
[Audacity](https://www.audacityteam.org/)
[House.bmp - www.hlevkin.com](https://www.hlevkin.com/hlevkin/TestImages/houses.bmp)
[libsndfile](https://github.com/libsndfile/libsndfile)
[stb](https://github.com/nothings/stb)