-
Notifications
You must be signed in to change notification settings - Fork 15
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
Stitching not available #64
Comments
@tval2 have you considered using |
Maybe i'm missing something but my understanding was that convert only returns the response body, no? At least that's what it shows in the repo. |
@dsinghvi perhaps more broadly: is there any clean way to use the SDK and pass the previous_request_ids parameter at the same time? The |
Also on this topic, a contradictory guideline from the API reference:
Which one should we follow? Should I send previous_text or no? |
@tval2 you should be able to use |
I am also encountering the same issue reported in the original message |
It's not possible to get the request id from textToSpeech.convertAsStream |
@dsinghvi Neither
@tval2 I noticed the same thing 😅 |
I am trying to keep my app low latency and hence am using the streaming api via this node library. I also want to maintain decent flow between my chunks that I am sending in (I am splitting on new sentences) and hence need to stitch them together using the request_ids of previous streams.
However, upon looking into this further it seems that
client.generate
has no way of also returning the request_id as an optional output and therefore I can't even use this feature at all. I was told in the discord to try the HTTP API but the output format of the HTTP API differs from the SDK, so I need to make other changes in my codebase simply because swapped out how I'm calling the API.I tried looking in the source code here to see if I could mimic the output of the SDK but it doesn't seem to work. So figured I'd post here asking for a PR where you output the request_id if asked as well.
The text was updated successfully, but these errors were encountered: