Toggle navigation
Toggle navigation
This project
Loading...
Sign in
민병수
/
Voicoding
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
천현우
2021-06-02 22:44:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8197edc234078c0c11dca94f593e4622fd6ec826
8197edc2
1 parent
ef5d7151
updated
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
voicoding.js
voicoding.js
View file @
8197edc
...
...
@@ -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
)
=>
{
...
...
Please
register
or
login
to post a comment