forked from AgoraIO-Extensions/react-native-agora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVoiceChangerConfig.tsx
More file actions
138 lines (134 loc) · 4.57 KB
/
Copy pathVoiceChangerConfig.tsx
File metadata and controls
138 lines (134 loc) · 4.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import {
AudioEffectPreset,
AudioEqualizationBandFrequency,
AudioReverbType,
VoiceBeautifierPreset,
} from 'react-native-agora';
export default [
{
alertTitle: 'Set Chat Beautifier',
options: [
{ text: 'Off', type: VoiceBeautifierPreset.VoiceBeautifierOff },
{ text: 'FemaleFresh', type: VoiceBeautifierPreset.ChatBeautifierFresh },
{
text: 'FemaleVitality',
type: VoiceBeautifierPreset.ChatBeautifierVitality,
},
{ text: 'Vigorous', type: VoiceBeautifierPreset.ChatBeautifierMagnetic },
],
},
{
alertTitle: 'Set Timbre Transformation',
options: [
{ text: 'Off', type: VoiceBeautifierPreset.VoiceBeautifierOff },
{
text: 'Vigorous',
type: VoiceBeautifierPreset.TimbreTransformationVigorous,
},
{ text: 'Deep', type: VoiceBeautifierPreset.TimbreTransformationDeep },
{
text: 'Mellow',
type: VoiceBeautifierPreset.TimbreTransformationMellow,
},
{
text: 'Falsetto',
type: VoiceBeautifierPreset.TimbreTransformationFalsetto,
},
{ text: 'Full', type: VoiceBeautifierPreset.TimbreTransformationFull },
{ text: 'Clear', type: VoiceBeautifierPreset.TimbreTransformationClear },
{
text: 'Resounding',
type: VoiceBeautifierPreset.TimbreTransformationResounding,
},
{
text: 'Ringing',
type: VoiceBeautifierPreset.TimbreTransformationRinging,
},
],
},
{
alertTitle: 'Set Style Transformation',
options: [
{ text: 'Off', type: AudioEffectPreset.AudioEffectOff },
{ text: 'Pop', type: AudioEffectPreset.StyleTransformationPopular },
{ text: 'R&B', type: AudioEffectPreset.StyleTransformationRnB },
],
},
{
alertTitle: 'Set Voice Changer',
options: [
{ text: 'Off', type: AudioEffectPreset.AudioEffectOff },
{
text: 'FxUncle',
type: AudioEffectPreset.VoiceChangerEffectUncle,
},
{
text: 'Old Man',
type: AudioEffectPreset.VoiceChangerEffectOldMan,
},
{
text: 'Baby Boy',
type: AudioEffectPreset.VoiceChangerEffectBoy,
},
{
text: 'FxSister',
type: AudioEffectPreset.VoiceChangerEffectSister,
},
{
text: 'Baby Girl',
type: AudioEffectPreset.VoiceChangerEffectGirl,
},
{
text: 'ZhuBaJie',
type: AudioEffectPreset.VoiceChangerEffectPigKing,
},
{ text: 'Hulk', type: AudioEffectPreset.VoiceChangerEffectHulk },
],
},
{
alertTitle: 'Set Room Acoustics',
options: [
{ text: 'Off', type: AudioEffectPreset.AudioEffectOff },
{ text: 'KTV', type: AudioEffectPreset.RoomAcousticsKTV },
{ text: 'Concert', type: AudioEffectPreset.RoomAcousticsVocalConcert },
{ text: 'Studio', type: AudioEffectPreset.RoomAcousticsStudio },
{ text: 'Phonograph', type: AudioEffectPreset.RoomAcousticsPhonograph },
{
text: 'Virtual Stereo',
type: AudioEffectPreset.RoomAcousticsVirtualStereo,
},
{ text: 'Spacial', type: AudioEffectPreset.RoomAcousticsSpacial },
{ text: 'Ethereal', type: AudioEffectPreset.RoomAcousticsEthereal },
{
text: '3D Voice',
type: AudioEffectPreset.RoomAcoustics3DVoice,
},
],
},
{
alertTitle: 'Set Pitch Correction',
options: [
{ text: 'Off', type: AudioEffectPreset.AudioEffectOff },
{ text: 'Pitch Correction', type: AudioEffectPreset.PitchCorrection },
],
},
];
export const FreqOptions = [
{ text: '31Hz', type: AudioEqualizationBandFrequency.Band31 },
{ text: '62Hz', type: AudioEqualizationBandFrequency.Band62 },
{ text: '125Hz', type: AudioEqualizationBandFrequency.Band125 },
{ text: '250Hz', type: AudioEqualizationBandFrequency.Band250 },
{ text: '500Hz', type: AudioEqualizationBandFrequency.Band500 },
{ text: '1KHz', type: AudioEqualizationBandFrequency.Band1K },
{ text: '2KHz', type: AudioEqualizationBandFrequency.Band2K },
{ text: '4KHz', type: AudioEqualizationBandFrequency.Band4K },
{ text: '8KHz', type: AudioEqualizationBandFrequency.Band8K },
{ text: '16KHz', type: AudioEqualizationBandFrequency.Band16K },
];
export const ReverbKeyOptions = [
{ text: 'Dry Level', type: AudioReverbType.DryLevel, min: -20, max: 10 },
{ text: 'Wet Level', type: AudioReverbType.WetLevel, min: -20, max: 10 },
{ text: 'Room Size', type: AudioReverbType.RoomSize, min: 0, max: 100 },
{ text: 'Wet Delay', type: AudioReverbType.WetDelay, min: 0, max: 200 },
{ text: 'Strength', type: AudioReverbType.Strength, min: 0, max: 100 },
];