YMSoundShowcaseViewModel.h 842 B

1234567891011121314151617181920212223242526
  1. //
  2. // YMSoundShowcaseViewModel.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/3/8.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "MSYOUPAIViewModel.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^TemplateVoiceBlock)(NSString *voiceUrl, NSInteger voiceDuration);
  11. @interface YMSoundShowcaseViewModel : MSYOUPAIViewModel
  12. @property (nonatomic, copy) TemplateVoiceBlock templateVoiceBlock;
  13. /// 刷新语音提词器数据
  14. - (void)refreshVoiceTelepromptertData;
  15. /// 上传模板语音
  16. - (void)uploadTemplateVoiceURL:(NSURL*)templateVoiceURL TemplateVoiceDuration:(NSInteger)templateVoiceDuration;
  17. /// 语音提词器列表
  18. @property (nonatomic, strong, readonly) NSArray *voiceTeleprompterDataArray;
  19. /// 语音提词器内容
  20. @property (nonatomic, strong, readonly) NSAttributedString *voiceTeleprompterContent;
  21. @end
  22. NS_ASSUME_NONNULL_END