package com.sonic.cow.service;

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

import java.io.File;

/**
 * @description: 语音通话
 * @author: mzc
 * @date: 2025-07-30 11:12
 **/
public interface VoiceV2Service {

    /**
     * 语音识别
     *
     * @param userId 用户ID
     * @param file  文件
     * @return
     */
    AsrOutput asr(Long userId, Long aiId, File file) throws UnirestException;

    /**
     * 检测余额是否不足
     *
     * @param userId
     * @param amount 本次金额
     * @return
     */
    boolean checkBalanceIsInsufficient(Long userId, Long amount);
}
