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

Change playback rate with web-audio API rather than OpenAI parameter #29

Open
adrianlyjak opened this issue Apr 21, 2024 · 1 comment
Open
Labels
enhancement New feature or request web-audio Issues related to web audio implementation

Comments

@adrianlyjak
Copy link
Owner

See #28 for original context

OpenAI has a speed option in their API that the plug-in is using. This was just the most straightforward option to implement the feature. I haven't been impressed with the quality of the non-1x audio though. It seems like its lower quality? There's a playbackRate parameter in web audio that this could use (example), however it ends up changing the pitch of the audio as well, so there'd be more involved here than just tuning that parameter. Perhaps the detune parameter could counter-balance the pitch change.

@adrianlyjak adrianlyjak added the enhancement New feature or request label Apr 21, 2024
@adrianlyjak
Copy link
Owner Author

Looks like this is a rabbit hole. Might be able to achieve simply it by bringing in tone.js as a dependency. (stack overflow)

@adrianlyjak adrianlyjak added the web-audio Issues related to web audio implementation label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request web-audio Issues related to web audio implementation
Projects
None yet
Development

No branches or pull requests

1 participant