



import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, Features, Value
from .base import TaskTemplate
@dataclass(frozen=A_      )
class 				__A					( A_      ):
   UpperCamelCase					:str     =			field(default='''automatic-speech-recognition'''					, metadata={'''include_in_asdict_even_if_is_default''': True}      )
   UpperCamelCase					:ClassVar[Features]     =			Features({'''audio''': Audio()}      )
   UpperCamelCase					:ClassVar[Features]     =			Features({'''transcription''': Value('''string'''      )}      )
   UpperCamelCase					:str     =			"audio"
   UpperCamelCase					:str     =			"transcription"





   def        _snake_case    (self							,    __magic_name__				):
      if self.audio_column not in features:
         raise ValueError(f"Column {self.audio_column} is not present in features."				)
      if not isinstance(features[self.audio_column]							,    __magic_name__				):
         raise ValueError(f"Column {self.audio_column} is not an Audio type."				)
      lowerCamelCase__ :      int								=		copy.deepcopy(self				)
      lowerCamelCase__ :      Tuple								=		self.input_schema.copy()
      lowerCamelCase__ :      Tuple								=		features[self.audio_column]
      lowerCamelCase__ :      List[str]								=		input_schema
      return task_template





   @property
   def        _snake_case    (self				):
      return {self.audio_column: "audio", self.transcription_column: "transcription"}








import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, Features, Value
from .base import TaskTemplate
@dataclass(frozen=A_      )
class 				__A					( A_      ):
			UpperCamelCase					:str     =			field(default='''automatic-speech-recognition'''					, metadata={'''include_in_asdict_even_if_is_default''': True}      )
			UpperCamelCase					:ClassVar[Features]     =			Features({'''audio''': Audio()}      )
			UpperCamelCase					:ClassVar[Features]     =			Features({'''transcription''': Value('''string'''      )}      )
			UpperCamelCase					:str     =			"audio"
			UpperCamelCase					:str     =			"transcription"





			def        _snake_case    (self							,    __magic_name__				):
						if self.audio_column not in features:
									raise ValueError(f"Column {self.audio_column} is not present in features."				)
						if not isinstance(features[self.audio_column]							,    __magic_name__				):
									raise ValueError(f"Column {self.audio_column} is not an Audio type."				)
						lowerCamelCase__ :      int								=		copy.deepcopy(self				)
						lowerCamelCase__ :      Tuple								=		self.input_schema.copy()
						lowerCamelCase__ :      Tuple								=		features[self.audio_column]
						lowerCamelCase__ :      List[str]								=		input_schema
						return task_template





			@property
			def        _snake_case    (self				):
						return {self.audio_column: "audio", self.transcription_column: "transcription"}



