You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[SEPIA STT Server](https://github.com/SEPIA-Framework/sepia-stt-server) WebSocket module for **speech recognition** (see STT Server for demo)
17
17
- more to come ...
18
18
19
19
## Quick-Start - Voice Recorder
20
20
21
21
Efficiently resampling audio to 16000 Hz and creating 16Bit mono samples for speech recognition was one of the primary objectives when building this library.
22
22
While you can put together your own audio pipeline to do that (see below) there is a very convenient plugin available that does the job for you.
23
-
In this quick-start guide you will learn the basics to use the 'SepiaVoiceRecorder'.
23
+
In this quick-start guide you will learn the basics to use the **'SepiaVoiceRecorder'**.
24
24
25
-
The first step is to import the required files and set the correct path to the modules folder. You will find more details about this step in the tutorial below. In this example the required files in 'modules' are 'speex-resample-switch.js', 'wave-encoder-worker.js' and 'shared/ring-buffer.min.js':
25
+
The first step is to import the required files and set the correct path to the modules folder. You will find more details about this step in the tutorial below.
26
+
In this example the required files in 'modules' are `speex-resample-switch.js`, `wave-encoder-worker.js` and `shared/ring-buffer.min.js`:
@@ -159,7 +159,8 @@ If we don't want to restart later we can close the processor and clean up resour
159
159
### Part 2: Resample input and record raw 16Bit PCM mono audio (WAV)
160
160
161
161
A very common use-case for this library is to resample microphone input and encode it as 16Bit PCM mono data (which is basically the default WAV file format).
162
-
To make this happen we will replace the buffer module from earlier with a resampler and wave encoder module. If you haven't done already please copy 'speex-resample-switch.js', 'wave-encoder-worker.js' and 'shared/ring-buffer.min.js' to your modules folder.
162
+
To make this happen we will replace the buffer module from earlier with a resampler and wave encoder module.
163
+
If you haven't done already please copy `speex-resample-switch.js`, `wave-encoder-worker.js` and `shared/ring-buffer.min.js` to your modules folder.
163
164
164
165
NOTE: Some browsers are actually able to natively resampling for us ^^. The resampler module will simply skip transformation in this case but it might be preferable to prevent native resampling to retain full control over the quality and speed.
165
166
`SepiaFW.webAudio.isNativeStreamResamplingSupported` will be 'true' when the lib is imported because we can't test for the feature but set to 'false' after the first failed attempt of native resampling!
0 commit comments