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

How to get Sam's speech in WAV Data URL format? #41

Open
True-Fantom opened this issue Aug 10, 2023 · 2 comments
Open

How to get Sam's speech in WAV Data URL format? #41

True-Fantom opened this issue Aug 10, 2023 · 2 comments

Comments

@True-Fantom
Copy link

I need this for one of my projects. I will be very grateful if you help!

@True-Fantom
Copy link
Author

@discordier please...

@discordier
Copy link
Owner

There is no function that does this out of the box, however, it is done internally for providing the wave download.

See https://github.com/discordier/sam/blob/master/src/util/player.es6#L80

The data url is built on 128.
You should be fine by copy pasting all above it and using it to creating your own data url from the buf8 result.

Maybe it is worth to extract this into a high level function which is then exported and called internally from RenderBuffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants