Words Boosting

The Words Boosting feature allows you to increase the likelihood of specific words appearing in the transcription results by adding them to a boost word list. This is useful for highlighting important terms or ensuring that certain words are included in the transcription.

Note: Word Boosting is currently available only for the Pulse and Cosmos model.

How It Works

You can specify a list of words that you want to boost. The STT engine will then give these words a higher priority during transcription, increasing their chances of appearing in the final results.

To use the Words Boosting feature, include a boostWordList in your API request. This list should contain the specific words you want to boost in the transcription results.

Example Request

  • application/json

POST /v1/speech-to-text/pulse/transcribe HTTP/1.1
Host: api.gowajee.ai
Content-Type: application/json
X-Api-Key: ${YOUR_API_KEY}

{
  "audioData": "base64_encoded_raw_audio_data",
  "boostWordList": ["สวัสดี", "โกวาจี"],
  "boostScore": 15 // Optional
}
  • multipart/form-data

POST /v1/speech-to-text/${MODEL}/transcribe HTTP/1.1
Host: api.gowajee.ai
X-Api-Key: ${YOUR_API_KEY}

Content-Length: 343
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="audioData"; filename="${filename}"
Content-Type: <Content-Type header here>

(data)
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="boostWordList"

สวัสดี,โกวาจี,ยินดี
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Example Response

{
  "type": "ASR_PULSE",
  "amount": 4.517,
  "output": {
    "results": [
      {
        "transcript": "สวัสดี, ยินดีต้อนรับสู่ โกวาจี",
        "startTime": 0,
        "endTime": 4.517
      }
    ],
    "duration": 4.517,
    "version": "2.2.0"
  }
}

Last updated