Skip to main content

Method to Configure for Each Request

When making a speech recognition request, set the words you want to add (or keyword biasing for End to End engines) in the profileWords request parameter. The word registration or keyword biasing will be effective only for that session.

For word registration with Hybrid Engine

For example, set "AmiVoice あみぼいす" in profileWords as follows:

profileWords="AmiVoice あみぼいす"

To register multiple words, separate the written and pronunciation sets with a "|"(pipe). To register two words "AMI あみ" and "AOI あおい", set as follows:

profileWords="AMI あみ|AOI あおい"

Below is an example using the curl command. Here, we perform speech recognition using an audio file (test.wav). We set "AmiVoice あみぼいす|AOI あおい" in profileWords.

curl -X POST https://acp-api.amivoice.com/v1/nolog/recognize \
-F u={APP_KEY} \
-F "d=grammarFileNames=-a-general profileWords=AmiVoice%20%E3%81%82%E3%81%BF%E3%81%BC%E3%81%84%E3%81%99%7CAOI%20%E3%81%82%E3%81%8A%E3%81%84" \
-F a=@test.wav

For keyword biasing with End to End Engine

For example, set profileWords as "AmiVoice アミボイス 0.8" as follows:

profileWords="AmiVoice アミボイス 0.8"

For multiple keyword biasing, separate the written and alternative written or biasing level sets with a "|"(pipe). For two keyword biasing "AMI アドバンストメディア" and "AmiVoice アミボイス 0.8", set as follows:

profileWords="AMI アドバンストメディア|AmiVoice アミボイス 0.8"

Below is an example using the curl command. Here, we perform speech recognition using an audio file (test.wav). We set profileWords to "AMI アドバンストメディア|AmiVoice アミボイス 0.8".

curl -X POST https://acp-api.amivoice.com/v1/nolog/recognize \
-F u={APP_KEY} \
-F "d=grammarFileNames=-a-general profileWords=AMI%20%E3%82%A2%E3%83%89%E3%83%90%E3%83%B3%E3%82%B9%E3%83%88%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2%7CAmiVoice%20%E3%82%A2%E3%83%9F%E3%83%9C%E3%82%A4%E3%82%B9%200.8" \
-F a=@test.wav