WFCCSoundMessageContent.h 743 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // WFCCSoundMessageContent.h
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/9/9.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCMediaMessageContent.h"
  9. /**
  10. 语音消息
  11. */
  12. @interface WFCCSoundMessageContent : WFCCMediaMessageContent
  13. /**
  14. 构造方法
  15. @param wavPath 文件路径
  16. @param duration 时间
  17. @return 语音消息
  18. */
  19. + (instancetype)soundMessageContentForWav:(NSString *)wavPath
  20. duration:(long)duration;
  21. /**
  22. 时间
  23. */
  24. @property (nonatomic, assign)long duration;
  25. /**
  26. 设置wav内容
  27. @param voiceData wav数据
  28. */
  29. - (void)updateAmrData:(NSData *)voiceData;
  30. /**
  31. 获取语音消息的wav数据
  32. @return wav数据
  33. */
  34. - (NSData *)getWavData;
  35. @end