import { Type } from "class-transformer";
import "reflect-metadata";

export class VoiceRecognizeResultEntity {
  code: number = 0;
  message: string = '';
  request_id: string = '';
  @Type(() => FlashResult)
  flash_result: Array<FlashResult> = [];
  audio_duration: number = 0;
}

export class FlashResult {
  channel_id: number = 0;
  @Type(() => Sentence)
  sentence_list: Array<Sentence> = [];
  text: string = '';
}

export class Sentence {
  emotional_energy: number = 0;
  end_time: number = 0;
  speaker_id: number = 0;
  speech_speed: number = 0;
  start_time: number = 0;
  text: string = '';
}