Skip to content

Commit 42a2022

Browse files
committed
adapt new audio effects
1 parent 9f6ae76 commit 42a2022

File tree

3 files changed

+237
-75
lines changed

3 files changed

+237
-75
lines changed

iOS/APIExample/Common/AgoraExtension.swift

+49
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,27 @@ extension AgoraAudioVoiceChanger {
144144
}
145145
}
146146

147+
extension AgoraVoiceBeautifierPreset{
148+
func description() -> String {
149+
switch self {
150+
case .voiceBeautifierOff:return "Off".localized
151+
case .chatBeautifierFresh:return "FemaleFresh".localized
152+
case .chatBeautifierMagnetic:return "MaleMagnetic".localized
153+
case .chatBeautifierVitality:return "FemaleVitality".localized
154+
case .timbreTransformationVigorous:return "Vigorous".localized
155+
case .timbreTransformationDeep:return "Deep".localized
156+
case .timbreTransformationMellow:return "Mellow".localized
157+
case .timbreTransformationFalsetto:return "Falsetto".localized
158+
case .timbreTransformationFull:return "Full".localized
159+
case .timbreTransformationClear:return "Clear".localized
160+
case .timbreTransformationResounding:return "Resounding".localized
161+
case .timbreTransformationRinging:return "Ringing".localized
162+
default:
163+
return "\(self.rawValue)"
164+
}
165+
}
166+
}
167+
147168
extension AgoraAudioReverbPreset {
148169
func description() -> String {
149170
switch self {
@@ -170,6 +191,34 @@ extension AgoraAudioReverbPreset {
170191
}
171192
}
172193

194+
extension AgoraAudioEffectPreset {
195+
func description() -> String {
196+
switch self {
197+
case .audioEffectOff:return "Off".localized
198+
case .voiceChangerEffectUncle:return "FxUncle".localized
199+
case .voiceChangerEffectOldMan:return "Old Man".localized
200+
case .voiceChangerEffectBoy:return "Baby Boy".localized
201+
case .voiceChangerEffectSister:return "FxSister".localized
202+
case .voiceChangerEffectGirl:return "Baby Girl".localized
203+
case .voiceChangerEffectPigKing:return "ZhuBaJie".localized
204+
case .voiceChangerEffectHulk:return "Hulk".localized
205+
case .styleTransformationRnB:return "R&B".localized
206+
case .styleTransformationPopular:return "Pop".localized
207+
case .roomAcousticsKTV:return "KTV".localized
208+
case .roomAcousticsVocalConcert:return "Vocal Concert".localized
209+
case .roomAcousticsStudio:return "Studio".localized
210+
case .roomAcousticsPhonograph:return "Phonograph".localized
211+
case .roomAcousticsVirtualStereo:return "Virtual Stereo".localized
212+
case .roomAcousticsSpacial:return "Spacial".localized
213+
case .roomAcousticsEthereal:return "Ethereal".localized
214+
case .roomAcoustics3DVoice:return "3D Voice".localized
215+
case .pitchCorrection:return "Pitch Correction".localized
216+
default:
217+
return "\(self.rawValue)"
218+
}
219+
}
220+
}
221+
173222
extension AgoraAudioEqualizationBandFrequency {
174223
func description() -> String {
175224
switch self {

0 commit comments

Comments
 (0)