#Artificial Silence when receiving audio

2 messages · Page 1 of 1 (latest)

topaz abyss
#

Hi,
Not exactly a djs specific question, but perhaps someone can help.
I'm recording audio from a user and passing it through a speech recognition library. The library outputs a prediction/transcription when it detects silence, but there's no silence if the microphone is not activated.

Is there a way to artificially introduce silence to the stream when e.g. there's no data for 1 second?

Thanks

granite sinew
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.