천현우

updated

......@@ -52,8 +52,7 @@ async function testGoogleTextToSpeech(audioBuffer) {
};
const [response] = await client.recognize(request);
const transcription = response.results
.map(result => result.alternatives[0].transcript)
.join('\n');
.map(result => result.alternatives[0].transcript);
return transcription;
}
app.post('/upload_sound', upload.any(), async (req, res) => {
......