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.
See https://github.com/adrianlyjak/obsidian-aloud-tts/issues/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.