Skip to content

Commit b71cb7a

Browse files
authored
Merge pull request Kitt-AI#419 from Kitt-AI/devel
Added more comment for frontend audio processing
2 parents ae861e6 + ae1a3b0 commit b71cb7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/snowboy-detect.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,13 @@ class SnowboyDetect {
124124
int NumHotwords() const;
125125

126126
// If <apply_frontend> is true, then apply frontend audio processing;
127-
// otherwise turns the audio processing off.
127+
// otherwise turns the audio processing off. Frontend audio processing
128+
// includes algorithms such as automatic gain control (AGC), noise suppression
129+
// (NS) and so on. Generally adding frontend audio processing helps the
130+
// performance, but if the model is not trained with frontend audio
131+
// processing, it may decrease the performance. The general rule of thumb is:
132+
// 1. For personal models, set it to false.
133+
// 2. For universal models, follow the instruction of each published model
128134
void ApplyFrontend(const bool apply_frontend);
129135

130136
// Returns the required sampling rate, number of channels and bits per sample

0 commit comments

Comments
 (0)