diff --git a/samples/synthesize.js b/samples/synthesize.js index 119ae3fa..fc3df7b2 100644 --- a/samples/synthesize.js +++ b/samples/synthesize.js @@ -39,7 +39,7 @@ function synthesizeText(text, outputFile) { const audioContent = results[0].audioContent; fs.writeFileSync(outputFile, audioContent, 'binary'); - console.log(`Saved synthesized text to local audio file ${outputFile}`); + console.log(`Audio content written to file: ${outputFile}`); }) .catch(err => { console.error('ERROR:', err); @@ -71,7 +71,7 @@ function synthesizeSsml(ssml, outputFile) { const audioContent = results[0].audioContent; fs.writeFileSync(outputFile, audioContent, 'binary'); - console.log(`Saved synthesized text to local audio file ${outputFile}`); + console.log(`Audio content written to file: ${outputFile}`); }) .catch(err => { console.error('ERROR:', err); @@ -103,7 +103,7 @@ function synthesizeTextFile(textFile, outputFile) { const audioContent = results[0].audioContent; fs.writeFileSync(outputFile, audioContent, 'binary'); - console.log(`Saved synthesized text to local audio file ${outputFile}`); + console.log(`Audio content written to file: ${outputFile}`); }) .catch(err => { console.error('ERROR:', err); @@ -135,7 +135,7 @@ function synthesizeSsmlFile(ssmlFile, outputFile) { const audioContent = results[0].audioContent; fs.writeFileSync(outputFile, audioContent, 'binary'); - console.log(`Saved synthesized text to local audio file ${outputFile}`); + console.log(`Audio content written to file: ${outputFile}`); }) .catch(err => { console.error('ERROR:', err); diff --git a/samples/system-test/synthesize.test.js b/samples/system-test/synthesize.test.js index 3f9db68c..13844d9d 100644 --- a/samples/system-test/synthesize.test.js +++ b/samples/system-test/synthesize.test.js @@ -53,7 +53,7 @@ test(`should synthesize audio from text`, async t => { `${cmd} text '${text}' --outputFile '${outputFile}'`, cwd ); - t.true(output.includes(`Saved synthesized text to local audio file ${outputFile}`)); + t.true(output.includes(`Audio content written to file: ${outputFile}`)); t.true(fs.existsSync(outputFile)); }); @@ -63,7 +63,7 @@ test(`should synthesize audio from ssml`, async t => { `${cmd} ssml '${ssml}' --outputFile '${outputFile}'`, cwd ); - t.true(output.includes(`Saved synthesized text to local audio file ${outputFile}`)); + t.true(output.includes(`Audio content written to file: ${outputFile}`)); t.true(fs.existsSync(outputFile)); }); @@ -73,7 +73,7 @@ test(`should synthesize audio from text file`, async t => { `${cmd} text-file '${files[0].localPath}' --outputFile '${outputFile}'`, cwd ); - t.true(output.includes(`Saved synthesized text to local audio file ${outputFile}`)); + t.true(output.includes(`Audio content written to file: ${outputFile}`)); t.true(fs.existsSync(outputFile)); }); @@ -83,6 +83,6 @@ test(`should synthesize audio from ssml file`, async t => { `${cmd} ssml-file '${files[1].localPath}' --outputFile '${outputFile}'`, cwd ); - t.true(output.includes(`Saved synthesized text to local audio file ${outputFile}`)); + t.true(output.includes(`Audio content written to file: ${outputFile}`)); t.true(fs.existsSync(outputFile)); });