Help for this page

Select Code to Download


  1. or download this
    curl -X POST \
    -u "apikey:xxx" \
    --header "Content-Type: audio/flac" \
    --data-binary @{path_to_file}audio-file.flac \
    "https://stream-fra.watsonplatform.net/speech-to-text/api/v1/recognize
    +"
    
  2. or download this
    my $url="https://stream-fra.watsonplatform.net/speech-to-text/api/v1/r
    +ecognize";
    my $apikey="xxx";
    ...
        Content_Type => 'audio/flac',
        Content => $audio
        );