voice_changer.config.dart 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. import 'package:agora_rtc_engine/agora_rtc_engine.dart';
  2. /// VoiceChangeConfig
  3. const VoiceChangeConfig = [
  4. {
  5. 'alertTitle': 'Set Chat Beautifier',
  6. 'options': [
  7. {'text': 'Off', 'type': VoiceBeautifierPreset.voiceBeautifierOff},
  8. {
  9. 'text': 'FemaleFresh',
  10. 'type': VoiceBeautifierPreset.chatBeautifierFresh
  11. },
  12. {
  13. 'text': 'FemaleVitality',
  14. 'type': VoiceBeautifierPreset.chatBeautifierVitality,
  15. },
  16. {
  17. 'text': 'Vigorous',
  18. 'type': VoiceBeautifierPreset.chatBeautifierMagnetic
  19. },
  20. ],
  21. },
  22. {
  23. 'alertTitle': 'Set Timbre Transformation',
  24. 'options': [
  25. {'text': 'Off', 'type': VoiceBeautifierPreset.voiceBeautifierOff},
  26. {
  27. 'text': 'Vigorous',
  28. 'type': VoiceBeautifierPreset.timbreTransformationVigorous,
  29. },
  30. {'text': 'Deep', 'type': VoiceBeautifierPreset.timbreTransformationDeep},
  31. {
  32. 'text': 'Mellow',
  33. 'type': VoiceBeautifierPreset.timbreTransformationMellow,
  34. },
  35. {
  36. 'text': 'Falsetto',
  37. 'type': VoiceBeautifierPreset.timbreTransformationFalsetto,
  38. },
  39. {'text': 'Full', 'type': VoiceBeautifierPreset.timbreTransformationFull},
  40. {
  41. 'text': 'Clear',
  42. 'type': VoiceBeautifierPreset.timbreTransformationClear
  43. },
  44. {
  45. 'text': 'Resounding',
  46. 'type': VoiceBeautifierPreset.timbreTransformationResounding,
  47. },
  48. {
  49. 'text': 'Ringing',
  50. 'type': VoiceBeautifierPreset.timbreTransformationRinging,
  51. },
  52. ],
  53. },
  54. {
  55. 'alertTitle': 'Set Style Transformation',
  56. 'options': [
  57. {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
  58. {'text': 'Pop', 'type': AudioEffectPreset.styleTransformationPopular},
  59. {'text': 'R&B', 'type': AudioEffectPreset.styleTransformationRnb},
  60. ],
  61. },
  62. {
  63. 'alertTitle': 'Set Voice Changer',
  64. 'options': [
  65. {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
  66. {
  67. 'text': 'FxUncle',
  68. 'type': AudioEffectPreset.voiceChangerEffectUncle,
  69. },
  70. {
  71. 'text': 'Old Man',
  72. 'type': AudioEffectPreset.voiceChangerEffectOldman,
  73. },
  74. {
  75. 'text': 'Baby Boy',
  76. 'type': AudioEffectPreset.voiceChangerEffectBoy,
  77. },
  78. {
  79. 'text': 'FxSister',
  80. 'type': AudioEffectPreset.voiceChangerEffectSister,
  81. },
  82. {
  83. 'text': 'Baby Girl',
  84. 'type': AudioEffectPreset.voiceChangerEffectGirl,
  85. },
  86. {
  87. 'text': 'ZhuBaJie',
  88. 'type': AudioEffectPreset.voiceChangerEffectPigking,
  89. },
  90. {'text': 'Hulk', 'type': AudioEffectPreset.voiceChangerEffectHulk},
  91. ],
  92. },
  93. {
  94. 'alertTitle': 'Set Room Acoustics',
  95. 'options': [
  96. {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
  97. {'text': 'KTV', 'type': AudioEffectPreset.RoomAcousticsKTV},
  98. {'text': 'Concert', 'type': AudioEffectPreset.roomAcousticsVocalConcert},
  99. {'text': 'Studio', 'type': AudioEffectPreset.roomAcousticsStudio},
  100. {'text': 'Phonograph', 'type': AudioEffectPreset.roomAcousticsPhonograph},
  101. {
  102. 'text': 'Virtual Stereo',
  103. 'type': AudioEffectPreset.roomAcousticsVirtualStereo,
  104. },
  105. {'text': 'Spacial', 'type': AudioEffectPreset.roomAcousticsSpacial},
  106. {'text': 'Ethereal', 'type': AudioEffectPreset.roomAcousticsEthereal},
  107. {
  108. 'text': '3D Voice',
  109. 'type': AudioEffectPreset.roomAcoustics3dVoice,
  110. },
  111. ],
  112. },
  113. {
  114. 'alertTitle': 'Set Pitch Correction',
  115. 'options': [
  116. {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
  117. {'text': 'Pitch Correction', 'type': AudioEffectPreset.pitchCorrection},
  118. ],
  119. },
  120. ];
  121. /// FreqOptions
  122. const FreqOptions = [
  123. {'text': '31Hz', 'type': AudioEqualizationBandFrequency.Band31},
  124. {'text': '62Hz', 'type': AudioEqualizationBandFrequency.Band62},
  125. {'text': '125Hz', 'type': AudioEqualizationBandFrequency.Band125},
  126. {'text': '250Hz', 'type': AudioEqualizationBandFrequency.Band250},
  127. {'text': '500Hz', 'type': AudioEqualizationBandFrequency.Band500},
  128. {'text': '1KHz', 'type': AudioEqualizationBandFrequency.Band1K},
  129. {'text': '2KHz', 'type': AudioEqualizationBandFrequency.Band2K},
  130. {'text': '4KHz', 'type': AudioEqualizationBandFrequency.Band4K},
  131. {'text': '8KHz', 'type': AudioEqualizationBandFrequency.Band8K},
  132. {'text': '16KHz', 'type': AudioEqualizationBandFrequency.Band16K},
  133. ];
  134. /// ReverbKeyOptions
  135. const ReverbKeyOptions = [
  136. {
  137. 'text': 'Dry Level',
  138. 'type': AudioReverbType.DryLevel,
  139. 'min': -20.0,
  140. 'max': 10.0
  141. },
  142. {
  143. 'text': 'Wet Level',
  144. 'type': AudioReverbType.WetLevel,
  145. 'min': -20.0,
  146. 'max': 10.0
  147. },
  148. {
  149. 'text': 'Room Size',
  150. 'type': AudioReverbType.RoomSize,
  151. 'min': 0.0,
  152. 'max': 100.0
  153. },
  154. {
  155. 'text': 'Wet Delay',
  156. 'type': AudioReverbType.WetDelay,
  157. 'min': 0.0,
  158. 'max': 200.0
  159. },
  160. {
  161. 'text': 'Strength',
  162. 'type': AudioReverbType.Strength,
  163. 'min': 0.0,
  164. 'max': 100.0
  165. },
  166. ];