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
|
id: audio_sink
label: Audio Sink
category: '[Core]/Audio'
flags: throttle
parameters:
- id: samp_rate
label: Sample Rate
dtype: int
default: samp_rate
options: ['16000', '22050', '24000', '32000', '44100', '48000']
option_labels: [16KHz, 22.05KHz, 24KHz, 32KHz, 44.1KHz, 48KHz]
- id: device_name
label: Device Name
dtype: string
hide: ${ ('none' if device_name else 'part') }
- id: ok_to_block
label: OK to Block
dtype: enum
default: 'True'
options: ['True', 'False']
option_labels: ['Yes', 'No']
hide: part
- id: num_inputs
label: Num Inputs
dtype: int
default: '1'
hide: part
inputs:
- domain: stream
dtype: float
multiplicity: ${ num_inputs }
asserts:
- ${ 0 < num_inputs }
templates:
imports: from gnuradio import audio
make: audio.sink(${samp_rate}, ${device_name}, ${ok_to_block})
documentation: |-
Not all sampling rates will be supported by your hardware.
Leave the device name blank to choose deafult audio device. ALSA users with audio trouble may try setting the device name to plughw:0,0
The audio sink can have multiple inputs depending upon your hardware. For example, set the inputs to 2 for stereo audio.
file_format: 1
|