2025-10-09 16:48:46 +08:00

29 lines
876 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// V2NIMVoiceToTextParams.h
// NIMSDK
//
// Created by 齐洪茹 on 2023/9/15.
// Copyright © 2023 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface V2NIMVoiceToTextParams : NSObject
/// 本地语音文件路径 voicePath/ voiceUrl必须二选一
@property (nonatomic, strong) NSString *voicePath;
/// 语音url如果没有内部自动上传 voicePath/ voiceUrl必须二选一
@property (nonatomic, strong) NSString *voiceUrl;
/// 音频类型语音类型aac, wav, mp3, amr等
@property (nonatomic, strong) NSString *mimeType;
/// 采样率8000kHz, 16000kHz等
@property (nonatomic, strong) NSString *sampleRate;
/// 语音时长, 单位毫秒
@property (nonatomic, assign) NSTimeInterval duration;
/// 文件存储场景
@property (nonatomic, strong) NSString *sceneName;
@end
NS_ASSUME_NONNULL_END