Live streaming recognition issue
    • PDF

    Live streaming recognition issue

    • PDF

    Article summary

    Available in Classic and VPC

    While using the CLOVA Speech service, you may encounter the following issues. Check the questions and answers and act accordingly.

    Usage of epFlag and seqId in extraContents field

    I would like to know the usage of epFlag and seqId in the extraContents field of the Recognize API.

    Solution

    You can use them for pausing purposes, or to check if you have received a complete response to a request you sent.

    Whether gRPC service pausing is supported

    I would like to know if the gRPC service supports pausing.

    Solution

    The gRPC service does not support pausing, but it can be implemented in the Recognize API by setting the epFlag entry in the extraContents field to true, sending a request, and then not making a Recognize request for a period of time. For more information about the epFlag entry, see CLOVA Speech live streaming API.

    • If you request Recognize without setting epFlag to true and do not re-request for a certain period of time, the server processes the buffered Recognize request based on unvoiceTime (10 seconds) set internally and displays the response results.

    Recognize API sound source data format

    I would like to know about the sound source data format for the Recognize API.

    Solution

    Currently, we only support PCM (headerless raw wave) format at 16 kHz, 1 channel, 16 bits per sample.

    Whether epFlag value is required to be true before calling Close API

    I would like to know if it is mandatory to set the epFlag entry to true in the Recognize API's extraContents before calling the Close API.

    Solution

    It is not mandatory to set the epFlag item to true. However, it is recommended to set the epFlag entry to true if you want to receive a fast response result for the last Recognize request. For more information about the epFlag entry, see CLOVA Speech live streaming API.

    Whether all responses have been received

    I would like to know if I have received all the responses to the request I sent.

    Solution

    When calling the Recognize API, you can leverage the epFlag and seqId entries in the extraContents field. The result of a Recognize request with epFlag entry set to true and seqId entry set to any non-zero value can be verified by comparing epFlag and seqId in the Recognize response. For more information, see the JSON response body of Recognize response.

    Whether gRPC service has connection lifetime limit

    I would like to know if there is a limit to the connection lifetime (the duration of the connection between the server and client) for the gRPC service.

    Solution

    The gRPC service has a connection lifetime limit of 100 hours, but it may be disconnected due to network problems, so it is recommended to reflect retry logic for stable service use.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.