We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$discord->joinVoiceChannel($channel, false, false, null, true)->then(function (VoiceClient $vc) use ($channel, $ffmpeg, $audioOutput) { $vc->playFile(storage_path('44.wav')); // work $vc->on('ready', function(...$data) use($vc, $audioOutput){ //never called dump(['ready', $data]); $receiveStream = $vc->getRecieveStream(272445599360614401); dump(['receive stream', $receiveStream?->isReadable()]); $dest = new \React\Stream\WritableResourceStream(fopen($audioOutput, 'a')); $receiveStream?->pipeOpus($dest); echo "Stream recorded.", PHP_EOL; }); $vc->on('channel-opus', function(...$data) use($audioOutput){ //never called dump(['speak', $data]); }); $vc->on('channel-pcm', function(...$data) use($audioOutput){ //never called dump(['speak', $data]); }); },function ($err){ dump($err); });
Can someone write an example of recording voice to disk?
The text was updated successfully, but these errors were encountered:
The voice receive is non functioning, this part of code is unfinished since there is no official documentation to implement it.
Sorry, something went wrong.
No branches or pull requests
Can someone write an example of recording voice to disk?
The text was updated successfully, but these errors were encountered: