Troubleshooting of Olami speech to text: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
Tags: Mobile edit Mobile web edit
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:Speech to text}}
Troubleshooting of [https://tw.olami.ai/open/website/apiandsolution/api_solution OLAMI 中文語音辨識 API|歐拉蜜人工智慧開放平台(威盛電子)]
Troubleshooting of [https://tw.olami.ai/open/website/apiandsolution/api_solution OLAMI 中文語音辨識 API|歐拉蜜人工智慧開放平台(威盛電子)]


* sample code: [https://github.com/olami-developers/olami-api-quickstart-curl-samples/tree/master/cloud-speech-recognition olami-developers/olami-api-quickstart-curl-samples]


== Errors ==
== Errors ==
Line 19: Line 22:
</pre>
</pre>


solution: BASH script is only supported on {{Linux}} not {{Mac}}
solution: Syntax pf BASH script is only supported on {{Linux}} not {{Mac}}
 


=== Error: Request Entity Too Large ===
=== Error: Request Entity Too Large ===
Line 51: Line 53:
</pre>
</pre>


solution: Because tw.olami.ai & cn.olami.ai are different account, you should apply different app key.
solution: Because tw.olami.ai & cn.olami.ai are different account system, you should register new account and apply different app key.


=== Error: Cost too much time to complete the request ===
=== Error: Cost too much time to complete the request ===
output message: the second number are always the same number
output message: the second number are always the same number after hours
<pre>
<pre>
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
Line 71: Line 73:
</pre>
</pre>


solution: Cancel the process and try it later.
solution: Press {{kbd | key=control}} + {{kbd | key=c}} to cancel the process and try it later.


{{Template:Troubleshooting}}
{{Template:Troubleshooting}}


[[Category:NLP]]
[[Category:Tool]] [[Category:NLP]]

Latest revision as of 03:05, 11 September 2018

Category:NLP > Speech to text > Troubleshooting of Olami speech to text

Troubleshooting of OLAMI 中文語音辨識 API|歐拉蜜人工智慧開放平台(威盛電子)

Errors[edit]

Error: Invalid Timestamp[edit]

output message

$ ./olami-asr-api-test.sh https://cn.olami.ai/cloudservice/api <app key> <app secret> <audio file> 0
./olami-asr-api-test.sh: line 24: 1536204037N: value too great for base (error token is "1536204037N")
./olami-asr-api-test.sh: line 30: md5sum: command not found
curl -X POST "https://tw.olami.ai/cloudservice/api?api=asr&appkey=<app key>&timestamp=&sign=&seq=seg,nli&stop=1&compress=0" -H "content-type:application/octet-stream" --data-binary @sample.wav -c mycookie
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 98505  100    55  100 98450     23  41587  0:00:02  0:00:02 --:--:-- 41575

Audio file has been sent! Server response: {"msg":"Invalid Timestamp","code":108,"status":"error"}

[ERROR] Error occurred!

solution: Syntax pf BASH script is only supported on Linux Os linux.png not macOS icon_os_mac.png

Error: Request Entity Too Large[edit]

output message

Audio file has been sent! Server response: <html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.12.2</center>
</body>
</html>

solution: try to decrease the file size of audio file

Error: Invalid App Key[edit]

output message

./olami-asr-api-test.sh https://cn.olami.ai/cloudservice/api  <app key> <app secret> <audio file> 0

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1843k  100    53  100 1843k     26   909k  0:00:02  0:00:02 --:--:--  909k

Audio file has been sent! Server response: {"msg":"Invalid App Key","code":106,"status":"error"}


solution: Because tw.olami.ai & cn.olami.ai are different account system, you should register new account and apply different app key.

Error: Cost too much time to complete the request[edit]

output message: the second number are always the same number after hours

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    87  100    87    0     0    479      0 --:--:-- --:--:-- --:--:--   478
Sending request to get result by HTTP GET...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    87  100    87    0     0    699      0 --:--:-- --:--:-- --:--:--   701
Sending request to get result by HTTP GET...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    87  100    87    0     0    692      0 --:--:-- --:--:-- --:--:--   696

solution: Press control + c to cancel the process and try it later.


Troubleshooting of ...

Template