문제

I want to transcribe (Voice to Text) using VoiceCloud API. The API documentation is lacking the examples for it.

I want to send the (mp3,wav) file using VoiceCloud API. How to send/call the API using PHP. The API provide me only the bellow single line of code to call the API:

http/:voicecloudURL/api?action=sendfile&username=youruserid&devkey=abc123&idtype=username&fileurl=http:/yourserver/file.mp3

Should I use CURL for it?

도움이 되었습니까?

해결책

Should I use CURL for it?

That would be the best bet. Make a request to that URL and catch the response from it. Read from their API docs that they will return an XML response [consists of transactionuid]. Make use of SimpleXMLElement to grab the transactionuid as you can thus proceed further.

다른 팁

You may use just fopen function if opening url is allow in php.ini. Or using curl_init and other cURL functions.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top