-
Notifications
You must be signed in to change notification settings - Fork 54
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
Example of ogg encoding #40
Comments
Any chance of any pointers for where to look or where to ask for hints? |
OK so further digging: I downloaded node-opus which is documented to work with node-ogg I have noticed the result of ie.:
compared to
So that will be my problem. I need to create ogg packets from these buffers is my guess... I'm curious though why these two opus encoding libraries are so different though unless I've royally messed something up |
The answer on how to do this is in here and only builds in node 10 I think so I suppose this can be closed Unless there is an easier way you know of to achieve this? |
Because we cannot depend on node-ogg and we should not either. This library is stripped of all dependencies that come with node-opus usally. Reason being is that TooTallNate/node-ogg#23 |
Is your feature request related to a problem? Please describe.
I'm using this library to encode Opus buffers like so:
I want to encapsulate this with ogg in order to send it to the google speech-to-text api (see OGG_OPUS)
I'm finding this process really painful and so far have been unsuccessful, if there are any known examples of what is required I would be incredibly grateful.
Here's what I'm trying atm:
Using node-ogg
Describe the ideal solution
I appreciate this isn't strictly a problem with this library but given that ogg is the recommended encapsulation I think it would be beneficial to show an example of how to achieve this.
Describe alternatives you've considered
I've also tried to use the ogg-packet library to wrap my buffer in the ogg_packet struct before sending off to
oggStream.write
. This also leads to no data events being emitted. I'm pretty sure this is the wrong approach given ogg-packet says:but I thought I would try anyway.
What I've tried
Additional context
I'm a real novice when it comes to audio encoding so I'm probably misunderstanding some part of this process - apologies if it's something trivial but I've been doing this for about a week now 😅
If there's a better place to ask for help please feel free to move me along - thanks :)
Also tried something like this example from node-opus with no luck
The text was updated successfully, but these errors were encountered: