This commit is contained in:
Andre Natal 2018-10-10 17:17:42 -07:00 коммит произвёл Andre Natal
Родитель cc92cd7c2f
Коммит c9b820b606
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -10,8 +10,8 @@ run:
speech-proxy:build speech-proxy:build
test: test:
curl -w "@curl-format.txt" -X POST http://localhost:9001/ -H 'Content-Type: audio/opus' --data-binary @speech_orig.opus curl -w "@curl-format.txt" -H 'Accept-Language: en-us' -H 'Store-Sample: 1' -H 'Store-Transcription: 1' -H 'Product-Tag: shell-curl' -X POST http://localhost:9001/ -H 'Content-Type: audio/opus' --data-binary @speech_orig.opus
curl -w "@curl-format.txt" -i -X POST http://localhost:9001/ -H 'Content-Type: audio/webm' --data-binary @webm.webm curl -w "@curl-format.txt" -H 'Accept-Language: en-us' -H 'Store-Sample: 1' -H 'Store-Transcription: 1' -H 'Product-Tag: shell-curl' -X POST http://localhost:9001/ -H 'Content-Type: audio/webm' --data-binary @webm.webm
sh: sh:
docker exec -it $CONTAINER_ID bash docker exec -it $CONTAINER_ID bash

Просмотреть файл

@ -332,7 +332,7 @@ app.post('*', function (req, res, next) {
} }
}); });
if (config.s3_bucket && metadata.storesample === 1) { if (config.s3_bucket && metadata.storesample === '1') {
const audio_upload_params = { const audio_upload_params = {
Body: req.body, Body: req.body,
Bucket: config.s3_bucket, Bucket: config.s3_bucket,
@ -409,7 +409,7 @@ app.post('*', function (req, res, next) {
time: Date.now() - asr_request_start time: Date.now() - asr_request_start
}); });
if (config.s3_bucket && metadata.storetranscription === 1) { if (config.s3_bucket && metadata.storetranscription === '1') {
const json_upload_params = { const json_upload_params = {
Body: resBody, Body: resBody,
Bucket: config.s3_bucket, Bucket: config.s3_bucket,