package com.sonic.cow.client;

import com.mashape.unirest.http.exceptions.UnirestException;
import com.sonic.cow.domain.input.VoiceAsrInput;
import com.sonic.cow.domain.output.AsrOutput;

/**
 * 语音识别(语音转文本)
 */
public interface AsrV2Client {

    /**
     * 语音识别
     * @param userId 用户ID
     * @param input   base64编码音频内容
     * @return
     */
    AsrOutput asr(String userId, VoiceAsrInput input) throws UnirestException, InterruptedException;

}
