codecs.conf.sample 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. [speex]
  2. ; CBR encoding quality [0..10]
  3. ; used only when vbr = false
  4. quality => 3
  5. ; codec complexity [0..10]
  6. ; tradeoff between cpu/quality
  7. complexity => 2
  8. ; perceptual enhancement [true / false]
  9. ; improves clarity of decoded speech
  10. enhancement => true
  11. ; voice activity detection [true / false]
  12. ; reduces bitrate when no voice detected, used only for CBR
  13. ; (implicit in VBR/ABR)
  14. vad => true
  15. ; variable bit rate [true / false]
  16. ; uses bit rate proportionate to voice complexity
  17. vbr => true
  18. ; available bit rate [bps, 0 = off]
  19. ; encoding quality modulated to match this target bit rate
  20. ; not recommended with dtx or pp_vad - may cause bandwidth spikes
  21. abr => 0
  22. ; VBR encoding quality [0-10]
  23. ; floating-point values allowed
  24. vbr_quality => 4
  25. ; discontinuous transmission [true / false]
  26. ; stops transmitting completely when silence is detected
  27. ; pp_vad is far more effective but more CPU intensive
  28. dtx => false
  29. ; preprocessor configuration
  30. ; these options only affect Speex v1.1.8 or newer
  31. ; enable preprocessor [true / false]
  32. ; allows dsp functionality below but incurs CPU overhead
  33. preprocess => false
  34. ; preproc voice activity detection [true / false]
  35. ; more advanced equivalent of DTX, based on voice frequencies
  36. pp_vad => false
  37. ; preproc automatic gain control [true / false]
  38. pp_agc => false
  39. pp_agc_level => 8000
  40. ; preproc denoiser [true / false]
  41. pp_denoise => false
  42. ; preproc dereverb [true / false]
  43. pp_dereverb => false
  44. pp_dereverb_decay => 0.4
  45. pp_dereverb_level => 0.3
  46. [plc]
  47. ; for all codecs which do not support native PLC
  48. ; this determines whether to perform generic PLC
  49. ; there is a minor performance penalty for this
  50. genericplc => true
  51. ; Generate custom formats for formats requiring attributes.
  52. ; After defining the custom format, the name used in defining
  53. ; the format can be used throughout Asterisk in the format 'allow'
  54. ; and 'disallow' options.
  55. ;
  56. ; Example: silk8 is a predefined custom format in this config file.
  57. ; Once this config file is loaded, silk8 can be used anywhere a
  58. ; peer's codec capabilities are defined.
  59. ;
  60. ; In sip.conf 'silk8' can be defined as a capability for a peer.
  61. ; [peer1]
  62. ; type=peer
  63. ; host=dynamic
  64. ; disallow=all
  65. ; allow=silk8 ;custom codec defined in codecs.conf
  66. ;
  67. ; LIMITATIONS
  68. ; Custom formats can only be defined at startup. Any changes to this
  69. ; file made after startup will not take into effect until after Asterisk
  70. ; is restarted.
  71. ;
  72. ; Default Custom SILK format definitions, only one custom SILK format per
  73. ; sample rate is allowed.
  74. [silk8]
  75. type=silk
  76. samprate=8000
  77. fec=true ; turn on or off encoding with forward error correction.
  78. ; On recommended, off by default.
  79. packetloss_percentage=10 ; Estimated packet loss percentage in uplink direction. This
  80. ; affects how much redundancy is built in when using fec.
  81. ; The higher the percentage, the larger amount of bandwidth is
  82. ; used. Default is 0%, 10% is recommended when fec is in use.
  83. maxbitrate=10000 ; Use the table below to make sure a useful bitrate is choosen
  84. ; for maxbitrate. If not set or value is not within the bounds
  85. ; of the encoder, a default value is chosen.
  86. ;
  87. ; sample rate | bitrate range
  88. ; 8khz | 5000 - 20000 bps
  89. ; 12khz | 7000 - 25000 bps
  90. ; 16khz | 8000 - 30000 bps
  91. ; 24khz | 20000- 40000 bps
  92. ;
  93. ;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
  94. ; on will save bandwidth during periods of silence at the cost of
  95. ; increased computational complexity. Off by default.
  96. [silk12]
  97. type=silk
  98. samprate=12000
  99. maxbitrate=12000
  100. fec=true
  101. packetloss_percentage=10;
  102. [silk16]
  103. type=silk
  104. samprate=16000
  105. maxbitrate=20000
  106. fec=true
  107. packetloss_percentage=10;
  108. [silk24]
  109. type=silk
  110. samprate=24000
  111. maxbitrate=30000
  112. fec=true
  113. packetloss_percentage=10;
  114. ; Default custom CELT codec definitions. Only one custom CELT definition is allowed
  115. ; per a sample rate.
  116. ;[celt44]
  117. ;type=celt
  118. ;samprate=44100 ; The samplerate in hz. This option is required.
  119. ;framesize=480 ; The framesize option represents the duration of each frame in samples.
  120. ; This must be a factor of 2. This option is only advertised in an SDP
  121. ; when it is set. Otherwise a default of framesize of 480 is assumed
  122. ; internally
  123. ;[celt48]
  124. ;type=celt
  125. ;samprate=48000
  126. ;[celt32]
  127. ;type=celt
  128. ;samprate=32000