texttospeech/quickstart.js change the file to use fs/promises #3504
Labels
api: texttospeech
Issues related to the Text-to-Speech API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
type: question
Request for information or clarification. Not an issue.
hello! ive noticed that texttospeech/quickstart.js uses fs.writeFile synchronously, and is then promisified with 'util.promisify'. why not just use 'fs/promises' and not just 'fs'? it does the same thing, and the code is more understandable. lmk your opinion google team!
The text was updated successfully, but these errors were encountered: