{"version":"1.0","type":"rich","title":"Gist 5765711","description":"This example demonstrates a minimal Node.js command-line tool that plays an MP3 audio file through the system’s default audio output. It reads the file from the path given as the second command-line argument, decodes the MP3 stream, and pipes the decoded audio data directly to the speaker. The code uses the `fs.createReadStream` API to read the file, the `lame` decoder to convert MP3 frames into raw PCM audio, and the `Speaker` module to output that PCM data to the sound device. The `on('format')` event provides the audio format required to initialize the speaker correctly.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5765711?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}