package com.remax.visualnovel.entity.response

import android.os.Parcelable
import com.remax.visualnovel.entity.response.base.BaseVoice
import kotlinx.parcelize.Parcelize

/**
 * Created by HJW on 2025/7/21
 */

@Parcelize
data class AIVoice(
    val type: Int, // 1 男  2 女
    var select: Boolean = false,
    var name: String?,
    val description: String?,
    val voiceType: String?,
    val supportEmotions: String?,
    val voiceText: String?,
    var url: String?,
    var filePath: String?,
    val code: String?,
    val pitchRate: Int?,
    val speechRate: Int?
) : Parcelable, BaseVoice() {

    override fun filePathName(): String {
        return filePath ?: ""
    }

    override fun id(): String {
        return name ?: ""
    }

    override fun url(): String {
        return url ?: ""
    }
}
