Comments (4)
I just want to give an example why this can be usefull:
I am storing small audio files in a mongoDB database. It takes some time to get them back out of the database.
Then i store them to the drive to pass them to lavaplayer so it can read them back in.
For an audio file with a duration around 3 sec it takes 3 -4 sec to load. With an InputStream (the way I get the files from the database) it could be much faster.
(To be honest i dont know, if the file has to be downloaded completely in order to start playing, or if it could start reading the bytes from the InputStream while it already plays.)
EDIT:
I just tested it. it takes so long, no matter what source i choose. But only when the bot has to open an new audio connection.
Any solutions for that?
from lavaplayer.
Hello @sedmelluq ! I am also interested in a way to play audio from an InputStream, is there any workaround we can use until this is potentially implemented as a LavaPlayer feature ?
Thanks for your amazing work anyway!
from lavaplayer.
I'd love for this to be an option. Many text-to-speech services return their data in InputStream format, and there's currently no way to plug this into lavaplayer that I can find...
from lavaplayer.
You just need to implement proper AudioSourceManager, then register it in your bot...
from lavaplayer.
Related Issues (20)
- Youtube Master Token Update Failed HOT 2
- Error when Request YouTube Livestreams via YouTubes share-url
- Music Bot keeps connecting and disconnecting from the voice channel after /play command. HOT 3
- Bot has completely stopped playing music HOT 1
- Can't find YouTube playlists that are albums HOT 3
- crossfade feature
- Spotify Support HOT 4
- How to enable debug mode?
- libudpqueue.so: failed to map segment from shared object
- Unknown file format / Unsupported bits per sample HOT 1
- lavaplayer joins audio channel but errors and doesnt play only on Macos Ventura HOT 2
- Not success status code: 403 HOT 2
- How Lavaplayer seek YouTube video? HOT 4
- Bot just stopped playing tracks
- Lavaplayer stopped playing youtube links HOT 2
- playing music, but not sound
- Error HOT 3
- Lavaplayer completely stopped working without giving any errors HOT 3
- [email protected]() async def foo(ctx, arg): await ctx.send(arg)
- Something broke when playing the track happens every time i try to play a track HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavaplayer.