Skip to content

add speed attribute to PiperSpeaker#11

Open
Duve3 wants to merge 1 commit into
n1teshy:mainfrom
Duve3:main
Open

add speed attribute to PiperSpeaker#11
Duve3 wants to merge 1 commit into
n1teshy:mainfrom
Duve3:main

Conversation

@Duve3

@Duve3 Duve3 commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Adds the ability to increase or decrease the speed of PiperSpeaker, along with the necessary documentation.
This commit also adds testing for 2x speed.

@n1teshy

n1teshy commented Aug 1, 2025

Copy link
Copy Markdown
Owner

Hi @Duve3

Thank you for taking your time, I've been caught up for a few weeks, I'll review your PR as soon as I can, sorry for the delay.

Comment thread yapper/speaker.py
@@ -149,6 +153,9 @@ def __init__(

self.volume = volume

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the blank line, that will make a block of properties (volume and speed)

Comment thread yapper/speaker.py
self.volume = volume

self.speed = speed
self.length_scale = str(1/self.speed)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the self.speed = speed line and set length_scale directly

Comment thread yapper/speaker.py
file,
"-q",
"--length-scale",
self.length_scale # this "length_scale" is just the speed value inverted

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the comment

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants