paraformer_stt_arguments.py 546 B

1234567891011121314151617
  1. from dataclasses import dataclass, field
  2. @dataclass
  3. class ParaformerSTTHandlerArguments:
  4. paraformer_stt_model_name: str = field(
  5. default="paraformer-zh",
  6. metadata={
  7. "help": "The pretrained model to use. Default is 'paraformer-zh'. Can be choose from https://github.com/modelscope/FunASR"
  8. },
  9. )
  10. paraformer_stt_device: str = field(
  11. default="cuda",
  12. metadata={
  13. "help": "The device type on which the model will run. Default is 'cuda' for GPU acceleration."
  14. },
  15. )