Speechace
  • Introduction
    • Overview
    • Use-Cases
  • Getting Started
    • Pre-requisites
      • API Features
      • Getting the API Key
      • API Regions and endpoints
      • API Limits
    • API Samples
    • Supported Languages
    • API Versioning
    • Authentication
    • Try the Speechace API
    • Error Handling
      • Common Errors
      • Retry Strategies
  • Solutions
    • Speaking Practice for Language Learning
    • Automated Language Assessment with AI
    • Voice AI for Early Literacy
    • Test Prep for Standardized tests
      • PTE Speaking Questions
      • IELTS Speaking Questions
      • TOEFL Speaking Questions
      • CEFR Speaking Questions
      • TOEIC Speaking Questions
    • Speaking Practice in Spanish and French
  • Features
    • Introduction
    • Scripted activities
      • Pronunciation Scoring
        • Word and Sentence pronunciation
        • Multiple choice
        • Custom pronunciations
        • Phoneme list
      • Fluency scoring
        • Passage scoring
      • Lexical stress and intonation
    • Spontaneous activities
      • Open-ended scoring
        • Language scoring
        • Relevance scoring
        • Language detection
      • Task achievement scoring
        • Describe Image
        • Re-tell Lecture
        • Answer Question
  • API Reference
    • Postman API reference
    • Score Text/Pronunciation
      • Handling overall scores
      • Handling word scores
      • Handling phoneme and syllable scores
    • Score Text/Multiple choice
      • Handling multiple choice response
    • Score Text/Markup Language
      • Handling Markup Response
    • Score Text/Stress & Intonation
      • Handing stress and intonation response
    • Score Text/Phoneme list
      • Handling phoneme list response
    • Score Text/Fluency
      • Handling fluency response
      • Fidelity detection
    • Score Text/Validate Text
    • Score Speech/Open-ended
      • Handling language scores
      • Per metric feedback
        • Grammar metrics
        • Vocabulary metrics
        • Coherence metrics
    • Score Speech/Relevance
      • Handling relevance response
    • Score Speech/Language Detection
    • Score Task/Task Achievement
  • Guides on common topics
    • Intepreting quality score
    • Interpreting overall scores
      • Pronunciation Bands
      • Fluency Bands
      • Vocabulary Bands
      • Grammar Bands
      • Coherence Bands
    • Scoring rubrics
    • Interpreting fidelity class
    • Phonetic notation
      • US English (en-us)
      • UK English (en-gb)
      • French (fr-fr, fr-ca)
      • Spanish (es-es, es-mx)
    • Getting word timestamps in audio
    • Automatic handling of unknown words
    • Phoneme to letter mapping
    • Markup Language
  • Other Resources
    • Requesting Support
    • Rate Limiting
    • Data Retention
    • FAQs
    • Appendices
Powered by GitBook
On this page
  • Attributes of error response
  • Errors
  • Support
  1. Getting Started
  2. Error Handling

Common Errors

PreviousError HandlingNextRetry Strategies

Last updated 6 months ago

If you are unable to understand or address an error you can .

Attributes of error response

Whenever the API returns an error, the response will appear as follows:

Sample error response
{
    "status": "error",
    "short_message": "error_invalid_parameters",
    "detail_message": "key"
}

The attributes of the response are:

  • status: This determines whether the response is a success or an error.

  • short_message : The type of error returned. Some of the are error_audio_too_long, error_missing_parameters or error_invalid_parameters.

  • detail_message : A human-readable message providing more details about the error.

Errors

Below is the list of common errors returned by the API and their solutions:

Error
Cause and Solution

error_unknown_words

Cause: One or more words are outside of Speechace lexicon.

error_audio_too_long

Solution: You should limit the recording size or contact support@speechace.com to upgrade your plan.

error_file_too_large

error_audio_missing

Cause: The audio file was not correctly passed or is missing.

Solution: Check the form data field in the request body of the cURL.

error_missing_parameters

Cause: One or more API parameters were missing.

Solution: Check the detail_message in the error response for the missing parameter.

error_invalid_parameters

Cause: One or more API parameters were missing.

Solution: Check the detail_message in the error response for the missing parameter.

error_convert_audio

Cause: The audio is either corrupt or not provided in a valid format such as mp3, wav, webm, aac etc.

error_too_many_requests

You are being throttled because you have exceeded the allowed concurrent request volume

error_feature_unavailable

Cause: You attempted to access a feature not provided in your subscription.

Solution: Contact support@speechace.com to upgrade your plan.

error_key_expired

Cause: Your API Key is not active.

Solution: Please check your subscription status or contact support@speechace.com

error_no_speech

Cause: No human voice detected in the provided audio file.

Solution: Ensure that the audio file contains clear human speech.

error_word_alignment

Cause: The audio did not align with any of the words in the intended text, possibly due to background noise or unclear speech.

Solution: Check for background noise and ensure that the speech in the audio file is clear and distinct.

error_text_too_long

Cause: The text you have submitted is longer than 1500 characters. Solution: Shorten the text to meet the character limit.

error_internal

Cause: A catch-all error for various unforseen cases.

Solution: Consult support@speechace.com for assistance with this general error.

Support

Solution: You should use the to validate text at the time of activity authoring to catch such errors and address them by changing the text or making requests to add terms to the Speechace lexicon. Alternatively you can pass the parameter to automatically handle such words

Cause: Your is longer than is allowed for your API license.

Cause: Your is larger than is allowed for your API license.

Solution: You should ensure you are recording at the required and no higher to optimize file size.

Solution: Please check that the audio file is not corrupt and is in acceptable .

If you are unable to understand or address an error you can .

raise a support ticket
raise a support ticket
possible errors
Validate Text API
include_unknown_words
audio duration
audio file size
sample rate
formats