constfs=require('node:fs');const{ GoogleTranslateTTS }=require('google-translate-tts');asyncfunctionmain(){// creates an instance of a GoogleTranslateTTSconstgt_tts=newGoogleTranslateTTS({language: 'en-us',text: 'Hello world!',});// creates a readable stream from the GoogleTranslateTTS instanceconstgt_tts_stream=awaitgt_tts.stream();// saves the readable stream to an mp3 filegt_tts_stream.pipe(fs.createWriteStream('./test.mp3'));}main();