Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Audiokinetic WWave .wem files to PCM samples #21

Open
zayfod opened this issue Sep 18, 2020 · 2 comments
Open

Converting Audiokinetic WWave .wem files to PCM samples #21

zayfod opened this issue Sep 18, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zayfod
Copy link
Owner

zayfod commented Sep 18, 2020

The Cozmo app stores audio files in Audiokinetic WWave .wem format.

#20 Introduces support for playing back audio from files in 16-bit, mono, 22 kHz WAVE format.

A new module is needed that can read .wem files and convert them to PCM samples that can be played back through Cozmo directly.

The following repositories provide some base:

@zayfod zayfod added enhancement New feature or request help wanted Extra attention is needed labels Sep 18, 2020
@FirefoxMetzger
Copy link

Do you happen to know where I can find the specification for the WEM format and could link it here? I recently wrote a format converter for DSDIFF to FLAC (delta-sigma modulated signal -> PCM) and this sounds somewhat similar. If it isn't too much hazzle I might be able to create a PR.

@zayfod
Copy link
Owner Author

zayfod commented Jan 4, 2021

@FirefoxMetzger , unfortunately there is no pubic specification as this is a proprietary format by Audiokinetic.

It seems that internally the format uses different audio encodings. Cozmo and Vector .wem files seem to contain samples encoded primarily as OGG and ADPCM. The ww2ogg and WEMSharp linked above implement conversion of .wem files that use OGG encoding to regular .ogg files.

Having similar functionality in Pure python would be ideal for pycozmo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants