All Projects → RT-Thread-packages → wavplayer

RT-Thread-packages / wavplayer

Licence: Apache-2.0 license
Minimal music player for wav file.

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wavplayer

uos
United Open-libraries of Sound. United procedures for open-source audio libraries. For FPC/Lazarus/fpGUI/MSEgui.
Stars: ✭ 112 (+433.33%)
Mutual labels:  player, wav
Audioplayer
Audio Player for Nextcloud and ownCloud
Stars: ✭ 179 (+752.38%)
Mutual labels:  player, wav
Vue Howler
[UNMAINTAINED] A Howler.js mixin for Vue 2 that makes it easy to create custom audio player components
Stars: ✭ 103 (+390.48%)
Mutual labels:  player, wav
ATtiny85-TinyDFPlayer
MP3-Player
Stars: ✭ 22 (+4.76%)
Mutual labels:  player
shaka-player-react
A simple React component wrapper for shaka-player
Stars: ✭ 79 (+276.19%)
Mutual labels:  player
synthrs
Toy audio synthesizer library in Rust with basic MIDI support.
Stars: ✭ 73 (+247.62%)
Mutual labels:  wav
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (+9.52%)
Mutual labels:  player
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-19.05%)
Mutual labels:  player
ArgPlayer
An android music player library
Stars: ✭ 52 (+147.62%)
Mutual labels:  player
perlotto
Minimal google music / youtube wrapper
Stars: ✭ 22 (+4.76%)
Mutual labels:  player
musique
C'est très élégant
Stars: ✭ 91 (+333.33%)
Mutual labels:  player
t-rex-game-bot
A bot that plays the Google Chrome T-Rex game for you
Stars: ✭ 60 (+185.71%)
Mutual labels:  player
Android-Wave-Recorder
A powerful and efficient library to record WAVE form audio files (WAV) in Android
Stars: ✭ 137 (+552.38%)
Mutual labels:  wav
MusicPlayer
A Telegram Music Bot written in Python using Pyrogram and Py-Tgcalls. This is Also The Source Code of The UserBot Which is Playing Music in @S1-BOTS Support Group ❤️
Stars: ✭ 218 (+938.1%)
Mutual labels:  player
wav
golang .wav reader and writer
Stars: ✭ 77 (+266.67%)
Mutual labels:  wav
ijkplayer
基于android端编译的ijkplayer、支持Https、附带编译教程,可快速引入项目。
Stars: ✭ 16 (-23.81%)
Mutual labels:  player
Square-Player
🍨 一个简洁到极致的单曲播放器
Stars: ✭ 19 (-9.52%)
Mutual labels:  player
plex-music
Web/Desktop app for streaming music from your Plex Media Server
Stars: ✭ 42 (+100%)
Mutual labels:  player
TonUINO
Alternative TonUINO Firmware
Stars: ✭ 112 (+433.33%)
Mutual labels:  player
Xenoblade2Voice
Xenoblade2 Voice After Battle
Stars: ✭ 44 (+109.52%)
Mutual labels:  player

wavplayer

中文页 | English

1. Introduction

wavplayer is a simple wav format music player that provides functions for playing and recording wav files, supporting functions such as play, stop, pause, resume, and volume adjustment.

1.1. File structure

Folder Description
src Core source code, which mainly implements wav playback and recording, and export Finsh command line
inc Header file directory

1.2 License

The wavplayer package complies with the Apache 2.0 license, see the LICENSE file for details.

1.3 Dependency

  • RT-Thread 4.0+
  • RT-Thread Audio driver framework
  • optparse command line parameter parsing package

1.4 Configuration Macro Description

 --- WavPlayer: Minimal music player for wav file play and record.
 [*] Enable support for play
 (sound0) The play device name
 [*] Enable support for record
 (sound0) The record device name
       Version (v1.0.0) --->

Enable support for play: enable wav play function The play device name: Specify the sound card device used for playback, default sound0 Enable support for record: enable wav recording function The record device name: Specify the sound card device used for recording, the default is the same as the playback, use sound0.

2. Use

Common functions of wavplayer have been exported to Finsh command line for developers to test and use. Commands are mainly divided into two categories: playback and recording, which provide different functions.

The functions provided by the play command are as follows

msh />wavplay -help
usage: wavplay [option] [target] ...

usage options:
  -h, --help Print defined help message.
  -s URI, --start=URI Play wav music with URI(local files).
  -t, --stop Stop playing music.
  -p, --pause Pause the music.
  -r, --resume Resume the music.
  -v lvl, --volume=lvl Change the volume(0~99).
  -d, --dump Dump play relevant information.

The functions provided by the recording command are as follows

msh />wavrecord -h
usage: wavrecord [option] [target] ...

usage options:
  -h, --help Print defined help message.
  -s file --start=file <samplerate> <channels> <samplebits>
                                        record wav music to filesystem.
  -t, --stop Stop record.

2.1 Play function

  • Start playing
msh />
msh />wavplay -s song_44.wav
Information:
sampletate 44100
channels 2
sample bits width 16
[I/WAV_PLAYER] play start, uri=song_44.wav
  • Stop play
msh />wavplay -t
[I/WAV_PLAYER] play end
  • Pause playback
msh />
msh />wavplay -p
msh />
  • Resume playback
msh />
msh />wavplay -r
msh />
  • Set volume
msh />
msh />wavplay -v 88
msh />

2.2 Recording function

  • start recording
msh />wavrecord -s test.wav
Information:
sampletate 8000
channels 2
  • Stop recording
msh />
msh />wavrecord -t
msh />

3. Matters needing attention

  • Only supports audio with 16bit sampling bits

4. Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].