options: parameters: author: Martin Braun category: Custom cmake_opt: '' comment: '' copyright: '2014,2019 Free Software Foundation, Inc.' description: An example how to use the Codec2 Vocoder gen_cmake: 'On' gen_linking: dynamic generate_options: qt_gui hier_block_src_path: '.:' id: loopback_codec2 max_nouts: '0' output_language: python placement: (0,0) qt_qss_theme: '' realtime_scheduling: '' run: 'True' run_command: '{python} -u {filename}' run_options: prompt sizing_mode: fixed thread_safe_setters: '' title: Codec2 Looback Test window_size: 1280, 1024 states: coordinate: [0, -1] rotation: 0 state: enabled blocks: - name: play_encoded id: variable_qtgui_check_box parameters: comment: '' 'false': '0' gui_hint: '' label: Encode Audio 'true': '1' type: int value: 'True' states: coordinate: [688, 12.0] rotation: 0 state: enabled - name: samp_rate id: variable parameters: comment: '' value: '48000' states: coordinate: [186, 0] rotation: 0 state: enabled - name: scale id: variable parameters: comment: '' value: 2**13 states: coordinate: [301, -1] rotation: 0 state: enabled - name: audio_sink_0 id: audio_sink parameters: affinity: '' alias: '' comment: '' device_name: '' num_inputs: '1' ok_to_block: 'True' samp_rate: '48000' states: coordinate: [784, 420.0] rotation: 0 state: enabled - name: audio_source_0 id: audio_source parameters: affinity: '' alias: '' comment: '' device_name: '' maxoutbuf: '0' minoutbuf: '0' num_outputs: '1' ok_to_block: 'True' samp_rate: '48000' states: coordinate: [0, 116.0] rotation: 0 state: enabled - name: blocks_add_xx_0 id: blocks_add_xx parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' num_inputs: '2' type: float vlen: '1' states: coordinate: [480, 408.0] rotation: 0 state: true - name: blocks_float_to_short_0 id: blocks_float_to_short parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' scale: scale vlen: '1' states: coordinate: [416, 116.0] rotation: 0 state: enabled - name: blocks_multiply_const_vxx_0 id: blocks_multiply_const_vxx parameters: affinity: '' alias: '' comment: '' const: 0.0 if play_encoded else 1.0 maxoutbuf: '0' minoutbuf: '0' type: float vlen: '1' states: coordinate: [224, 388.0] rotation: 0 state: true - name: blocks_multiply_const_vxx_1 id: blocks_multiply_const_vxx parameters: affinity: '' alias: '' comment: '' const: 1.0 if play_encoded else 0.0 maxoutbuf: '0' minoutbuf: '0' type: float vlen: '1' states: coordinate: [224, 452.0] rotation: 0 state: true - name: blocks_packed_to_unpacked_xx_0 id: blocks_packed_to_unpacked_xx parameters: affinity: '' alias: '' bits_per_chunk: '1' comment: '' endianness: gr.GR_LSB_FIRST maxoutbuf: '0' minoutbuf: '0' num_ports: '1' type: byte states: coordinate: [224, 284.0] rotation: 0 state: enabled - name: blocks_short_to_float_0 id: blocks_short_to_float parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' scale: scale vlen: '1' states: coordinate: [735, 361] rotation: 0 state: enabled - name: blocks_stream_to_vector_0 id: blocks_stream_to_vector parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' num_items: '48' type: byte vlen: '1' states: coordinate: [432, 296.0] rotation: 0 state: enabled - name: blocks_unpacked_to_packed_xx_0 id: blocks_unpacked_to_packed_xx parameters: affinity: '' alias: '' bits_per_chunk: '1' comment: '' endianness: gr.GR_LSB_FIRST maxoutbuf: '0' minoutbuf: '0' num_ports: '1' type: byte states: coordinate: [694, 199] rotation: 0 state: enabled - name: blocks_vector_to_stream_0 id: blocks_vector_to_stream parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' num_items: '48' type: byte vlen: '1' states: coordinate: [824, 120.0] rotation: 0 state: enabled - name: blocks_wavfile_source_0 id: blocks_wavfile_source parameters: affinity: '' alias: '' comment: '' file: /home/mbr0wn/12345.wav maxoutbuf: '0' minoutbuf: '0' nchan: '1' repeat: 'True' states: coordinate: [-1, 225] rotation: 0 state: disabled - name: qtgui_time_sink_x_0 id: qtgui_time_sink_x parameters: affinity: '' alias: '' alpha1: '1.0' alpha10: '1.0' alpha2: '1.0' alpha3: '1.0' alpha4: '1.0' alpha5: '1.0' alpha6: '1.0' alpha7: '1.0' alpha8: '1.0' alpha9: '1.0' autoscale: 'False' axislabels: 'True' color1: '"blue"' color10: '"blue"' color2: '"red"' color3: '"green"' color4: '"black"' color5: '"cyan"' color6: '"magenta"' color7: '"yellow"' color8: '"dark red"' color9: '"dark green"' comment: '' ctrlpanel: 'False' entags: 'True' grid: 'False' gui_hint: '' label1: '' label10: '' label2: '' label3: '' label4: '' label5: '' label6: '' label7: '' label8: '' label9: '' legend: 'True' marker1: '-1' marker10: '-1' marker2: '-1' marker3: '-1' marker4: '-1' marker5: '-1' marker6: '-1' marker7: '-1' marker8: '-1' marker9: '-1' name: Audio Post-Encoding nconnections: '1' size: '1024' srate: '8000' stemplot: 'False' style1: '1' style10: '1' style2: '1' style3: '1' style4: '1' style5: '1' style6: '1' style7: '1' style8: '1' style9: '1' tr_chan: '0' tr_delay: '0' tr_level: '0.0' tr_mode: qtgui.TRIG_MODE_FREE tr_slope: qtgui.TRIG_SLOPE_POS tr_tag: '""' type: float update_time: '0.10' width1: '1' width10: '1' width2: '1' width3: '1' width4: '1' width5: '1' width6: '1' width7: '1' width8: '1' width9: '1' ylabel: Amplitude ymax: '1' ymin: '-1' yunit: '""' states: coordinate: [960, 283] rotation: 0 state: enabled - name: qtgui_time_sink_x_0_0 id: qtgui_time_sink_x parameters: affinity: '' alias: '' alpha1: '1.0' alpha10: '1.0' alpha2: '1.0' alpha3: '1.0' alpha4: '1.0' alpha5: '1.0' alpha6: '1.0' alpha7: '1.0' alpha8: '1.0' alpha9: '1.0' autoscale: 'False' axislabels: 'True' color1: '"blue"' color10: '"blue"' color2: '"red"' color3: '"green"' color4: '"black"' color5: '"cyan"' color6: '"magenta"' color7: '"yellow"' color8: '"dark red"' color9: '"dark green"' comment: '' ctrlpanel: 'False' entags: 'True' grid: 'False' gui_hint: '' label1: '' label10: '' label2: '' label3: '' label4: '' label5: '' label6: '' label7: '' label8: '' label9: '' legend: 'True' marker1: '-1' marker10: '-1' marker2: '-1' marker3: '-1' marker4: '-1' marker5: '-1' marker6: '-1' marker7: '-1' marker8: '-1' marker9: '-1' name: Audio Pre-Encoding nconnections: '1' size: '1024' srate: '8000' stemplot: 'False' style1: '1' style10: '1' style2: '1' style3: '1' style4: '1' style5: '1' style6: '1' style7: '1' style8: '1' style9: '1' tr_chan: '0' tr_delay: '0' tr_level: '0.0' tr_mode: qtgui.TRIG_MODE_FREE tr_slope: qtgui.TRIG_SLOPE_POS tr_tag: '""' type: float update_time: '0.10' width1: '1' width10: '1' width2: '1' width3: '1' width4: '1' width5: '1' width6: '1' width7: '1' width8: '1' width9: '1' ylabel: Amplitude ymax: '1' ymin: '-1' yunit: '""' states: coordinate: [434, 202] rotation: 0 state: enabled - name: rational_resampler_xxx_0 id: rational_resampler_xxx parameters: affinity: '' alias: '' comment: '' decim: '6' fbw: '0.4' interp: '1' maxoutbuf: '0' minoutbuf: '0' taps: '' type: fff states: coordinate: [208, 92.0] rotation: 0 state: enabled - name: rational_resampler_xxx_1 id: rational_resampler_xxx parameters: affinity: '' alias: '' comment: '' decim: '1' fbw: '0.4' interp: '6' maxoutbuf: '0' minoutbuf: '0' taps: '' type: fff states: coordinate: [568, 396.0] rotation: 0 state: enabled - name: virtual_sink_0 id: virtual_sink parameters: affinity: '' alias: '' comment: '' stream_id: Encoded Speech states: coordinate: [908, 207] rotation: 0 state: enabled - name: virtual_sink_1 id: virtual_sink parameters: affinity: '' alias: '' comment: '' stream_id: Raw Audio states: coordinate: [508, 25] rotation: 0 state: enabled - name: virtual_sink_2 id: virtual_sink parameters: affinity: '' alias: '' comment: '' stream_id: Decoded Speech states: coordinate: [960, 393] rotation: 0 state: enabled - name: virtual_source_0 id: virtual_source parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' stream_id: Encoded Speech states: coordinate: [0, 292.0] rotation: 0 state: enabled - name: virtual_source_1 id: virtual_source parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' stream_id: Raw Audio states: coordinate: [-1, 389] rotation: 0 state: enabled - name: virtual_source_1_0 id: virtual_source parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' stream_id: Decoded Speech states: coordinate: [3, 449] rotation: 0 state: enabled - name: vocoder_codec2_decode_ps_0 id: vocoder_codec2_decode_ps parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' mode: codec2.MODE_2400 states: coordinate: [608, 296.0] rotation: 0 state: enabled - name: vocoder_codec2_encode_sp_0 id: vocoder_codec2_encode_sp parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' mode: codec2.MODE_2400 states: coordinate: [592, 116.0] rotation: 0 state: enabled connections: - [audio_source_0, '0', rational_resampler_xxx_0, '0'] - [blocks_add_xx_0, '0', rational_resampler_xxx_1, '0'] - [blocks_float_to_short_0, '0', vocoder_codec2_encode_sp_0, '0'] - [blocks_multiply_const_vxx_0, '0', blocks_add_xx_0, '0'] - [blocks_multiply_const_vxx_1, '0', blocks_add_xx_0, '1'] - [blocks_packed_to_unpacked_xx_0, '0', blocks_stream_to_vector_0, '0'] - [blocks_short_to_float_0, '0', qtgui_time_sink_x_0, '0'] - [blocks_short_to_float_0, '0', virtual_sink_2, '0'] - [blocks_stream_to_vector_0, '0', vocoder_codec2_decode_ps_0, '0'] - [blocks_unpacked_to_packed_xx_0, '0', virtual_sink_0, '0'] - [blocks_vector_to_stream_0, '0', blocks_unpacked_to_packed_xx_0, '0'] - [blocks_wavfile_source_0, '0', rational_resampler_xxx_0, '0'] - [rational_resampler_xxx_0, '0', blocks_float_to_short_0, '0'] - [rational_resampler_xxx_0, '0', qtgui_time_sink_x_0_0, '0'] - [rational_resampler_xxx_0, '0', virtual_sink_1, '0'] - [rational_resampler_xxx_1, '0', audio_sink_0, '0'] - [virtual_source_0, '0', blocks_packed_to_unpacked_xx_0, '0'] - [virtual_source_1, '0', blocks_multiply_const_vxx_0, '0'] - [virtual_source_1_0, '0', blocks_multiply_const_vxx_1, '0'] - [vocoder_codec2_decode_ps_0, '0', blocks_short_to_float_0, '0'] - [vocoder_codec2_encode_sp_0, '0', blocks_vector_to_stream_0, '0'] metadata: file_format: 1