Open
Conversation
You may now set the output volume digitally using the added setVol() function. It takes one parameter, which is the desired volume in percent, 0-255. A value of 100 will output the 'Max' volume, which is the normal volume outputted by the recording. A value of zero is mute, and a value greater then 100 will actually boost the original volume. Careful when boosting, if you go to high, the audio will distort when the waveform peaks hit the roof and gets clipped off.
|
Hi Colin - I am getting interested in speech on the Arduino, in my case a Pololu A-Star 32U4 Prime. I will start by incorporating your patch to the base project - thanks! My first Arduino project (but I do have a microcontroller background)... |
Author
|
Cool. Thanks for the line Michael. Glad to see an interest in my patch. Have you started on your project yet? @Wintermute3 |
|
Hi @ColinCreamer - yes, I checked my stuff in a week or two ago. Check it out at: https://github.com/Wintermute3/Talkie SD card support for large libraries is the big thing (and the port to A-Star). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey @going-digital. Love your library. I added volume some control functionality. It would be great if you could check it out and possibly pull it back into the main branch so others can benefit too.
Usage example:
voice.setVol(50); //Set the volume to 50%
voice.setVol(100); //Set the volume to 100%, original output
It takes one parameter, which is the desired volume in percent, 0-255. A
value of 100 will output the 'Max' volume, which is the normal volume
outputted by the recording. A value of zero is mute, and a value
greater then 100 will actually boost the original volume.
Careful when boosting, if you go too high, the audio will distort/muffle as
the waveform hits the roof and starts to clip. I found higher then 180% was counter productive, but it really depends on how loud the original clip was.