천현우

updated

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