Job config JSON is invalid #7
-
Hello, I am trying to run a transcript job using cURL command line (on OSX) and a config.json with the transcription and output configurations. However, I am receiving an error which I cannot figure out.
The command line I used: API_KEY=API_KEY curl -L -X POST "https://asr.api.speechmatics.com/v2/jobs/" The JSON file contains these lines:
Any advice would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @sam-globis, thanks for trying out our API and getting in touch! It's great to get feedback and hear where people are having issues. A couple of us here at Speechmatics tried out your code example to see if it would work for us. The main problem we encountered was that the quotes being used for Let me know if that works for you, if not, we can try digging deeper into the problem. |
Beta Was this translation helpful? Give feedback.
Hi @sam-globis, thanks for trying out our API and getting in touch! It's great to get feedback and hear where people are having issues.
A couple of us here at Speechmatics tried out your code example to see if it would work for us. The main problem we encountered was that the quotes being used for
-F config=”$(cat ./config.json)”
are not standard quotes and so cause some problems. When we changed those, it seemed to work. It might be worth trying that out, and also checking your config.json file for any non-standard characters. Sometimes if you copy things into certain text editors it converts the characters into non-standard formats. This can be a major gotcha sometimes (it's caught us …