Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_recognition.git
VCS Type git
VCS Version master
Last Updated 2020-09-09
Dev Status MAINTAINED
CI status Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Convert audio (audio_common_msgs/AudioData) to spectrogram (sensor_msgs/Image)

Additional Links

No additional links.

Maintainers

  • Naoya Yamaguchi

Authors

No additional authors.

audio_to_spectrogram

This package converts audio data to spectrum and spectrogram data.

Usage

By following command, you can publish audio, spectrum and spectrogram topics. Please set correct args for your microphone configuration, such as mic_sampling_rate or bitdepth.

roslaunch audio_to_spectrogram audio_to_spectrogram.launch

Here is an example using rosbag with 300Hz audio.

roslaunch audio_to_spectrogram sample_audio_to_spectrogram.launch

Spectrum Spectrogram

Scripts

audio_to_spectrum.py

A script to convert audio to spectrum.

  • Publishing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Subscribing topics

    • audio (audio_common_msgs/AudioData)

    Audio stream data from microphone. The audio format must be wave.

  • Parameters

    • ~mic_sampling_rate (Int, default: 16000)

    Sampling rate [Hz] of microphone. Namely, sampling rate of audio topic. - ~fft_sampling_period (Double, default: 0.3)

    Period [s] to sample audio data for one FFT. - ~depth (Int, default: 16)

    Number of bits per audio data. - ~high_cut_freq (Int, default: 800)

    Threshold to limit the maximum frequency of the output spectrum. - ~low_cut_freq (Int, default: 1)

    Threshold to limit the minimum frequency of the output spectrum.

spectrum_to_spectrogram.py

A script to convert spectrum to spectrogram.

  • Publishing topics

    • ~spectrogram (sensor_msgs/Image)

    Spectrogram data, which is concatenation of spectrum in time series. Image format is 32FC1.

  • Subscribing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Parameters

    • ~image_height (Int, default: 300)

    Number of vertical (frequency axis) pixels in output spectrogram. - ~image_width (Int, default: 300)

    Number of horizontal (time axis) pixels in output spectrogram. - ~spectrogram_period (Double, default: 5)

    Period [s] to store spectrum data to create one spectrogram topic. - ~publish_rate (Double, default: image_width / spectrogram_period)

    Publish rate [Hz] of spectrogram topic.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

  • launch/audio_to_spectrogram.launch
    • data flow
      • launch_audio_capture [default: true]
      • bitdepth [default: 16]
      • mic_sampling_rate [default: 16000]
      • n_channel [default: 1]
      • device [default: hw:0,0]
      • audio_topic [default: /audio]
      • high_cut_freq [default: 800]
      • low_cut_freq [default: 1]
      • spectrogram_period [default: 5]
      • gui [default: true]
  • sample/sample_audio_to_spectrogram.launch
    • data flow
      • gui [default: true]
      • filename [default: $(find audio_to_spectrogram)/sample/data/audio_300hz.bag]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged audio_to_spectrogram at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_recognition.git
VCS Type git
VCS Version master
Last Updated 2020-09-09
Dev Status MAINTAINED
CI status Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Convert audio (audio_common_msgs/AudioData) to spectrogram (sensor_msgs/Image)

Additional Links

No additional links.

Maintainers

  • Naoya Yamaguchi

Authors

No additional authors.

audio_to_spectrogram

This package converts audio data to spectrum and spectrogram data.

Usage

By following command, you can publish audio, spectrum and spectrogram topics. Please set correct args for your microphone configuration, such as mic_sampling_rate or bitdepth.

roslaunch audio_to_spectrogram audio_to_spectrogram.launch

Here is an example using rosbag with 300Hz audio.

roslaunch audio_to_spectrogram sample_audio_to_spectrogram.launch

Spectrum Spectrogram

Scripts

audio_to_spectrum.py

A script to convert audio to spectrum.

  • Publishing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Subscribing topics

    • audio (audio_common_msgs/AudioData)

    Audio stream data from microphone. The audio format must be wave.

  • Parameters

    • ~mic_sampling_rate (Int, default: 16000)

    Sampling rate [Hz] of microphone. Namely, sampling rate of audio topic. - ~fft_sampling_period (Double, default: 0.3)

    Period [s] to sample audio data for one FFT. - ~depth (Int, default: 16)

    Number of bits per audio data. - ~high_cut_freq (Int, default: 800)

    Threshold to limit the maximum frequency of the output spectrum. - ~low_cut_freq (Int, default: 1)

    Threshold to limit the minimum frequency of the output spectrum.

spectrum_to_spectrogram.py

A script to convert spectrum to spectrogram.

  • Publishing topics

    • ~spectrogram (sensor_msgs/Image)

    Spectrogram data, which is concatenation of spectrum in time series. Image format is 32FC1.

  • Subscribing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Parameters

    • ~image_height (Int, default: 300)

    Number of vertical (frequency axis) pixels in output spectrogram. - ~image_width (Int, default: 300)

    Number of horizontal (time axis) pixels in output spectrogram. - ~spectrogram_period (Double, default: 5)

    Period [s] to store spectrum data to create one spectrogram topic. - ~publish_rate (Double, default: image_width / spectrogram_period)

    Publish rate [Hz] of spectrogram topic.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

  • launch/audio_to_spectrogram.launch
    • data flow
      • launch_audio_capture [default: true]
      • bitdepth [default: 16]
      • mic_sampling_rate [default: 16000]
      • n_channel [default: 1]
      • device [default: hw:0,0]
      • audio_topic [default: /audio]
      • high_cut_freq [default: 800]
      • low_cut_freq [default: 1]
      • spectrogram_period [default: 5]
      • gui [default: true]
  • sample/sample_audio_to_spectrogram.launch
    • data flow
      • gui [default: true]
      • filename [default: $(find audio_to_spectrogram)/sample/data/audio_300hz.bag]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged audio_to_spectrogram at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_recognition.git
VCS Type git
VCS Version master
Last Updated 2020-09-09
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Convert audio (audio_common_msgs/AudioData) to spectrogram (sensor_msgs/Image)

Additional Links

No additional links.

Maintainers

  • Naoya Yamaguchi

Authors

No additional authors.

audio_to_spectrogram

This package converts audio data to spectrum and spectrogram data.

Usage

By following command, you can publish audio, spectrum and spectrogram topics. Please set correct args for your microphone configuration, such as mic_sampling_rate or bitdepth.

roslaunch audio_to_spectrogram audio_to_spectrogram.launch

Here is an example using rosbag with 300Hz audio.

roslaunch audio_to_spectrogram sample_audio_to_spectrogram.launch

Spectrum Spectrogram

Scripts

audio_to_spectrum.py

A script to convert audio to spectrum.

  • Publishing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Subscribing topics

    • audio (audio_common_msgs/AudioData)

    Audio stream data from microphone. The audio format must be wave.

  • Parameters

    • ~mic_sampling_rate (Int, default: 16000)

    Sampling rate [Hz] of microphone. Namely, sampling rate of audio topic. - ~fft_sampling_period (Double, default: 0.3)

    Period [s] to sample audio data for one FFT. - ~depth (Int, default: 16)

    Number of bits per audio data. - ~high_cut_freq (Int, default: 800)

    Threshold to limit the maximum frequency of the output spectrum. - ~low_cut_freq (Int, default: 1)

    Threshold to limit the minimum frequency of the output spectrum.

spectrum_to_spectrogram.py

A script to convert spectrum to spectrogram.

  • Publishing topics

    • ~spectrogram (sensor_msgs/Image)

    Spectrogram data, which is concatenation of spectrum in time series. Image format is 32FC1.

  • Subscribing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Parameters

    • ~image_height (Int, default: 300)

    Number of vertical (frequency axis) pixels in output spectrogram. - ~image_width (Int, default: 300)

    Number of horizontal (time axis) pixels in output spectrogram. - ~spectrogram_period (Double, default: 5)

    Period [s] to store spectrum data to create one spectrogram topic. - ~publish_rate (Double, default: image_width / spectrogram_period)

    Publish rate [Hz] of spectrogram topic.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

  • launch/audio_to_spectrogram.launch
    • data flow
      • launch_audio_capture [default: true]
      • bitdepth [default: 16]
      • mic_sampling_rate [default: 16000]
      • n_channel [default: 1]
      • device [default: hw:0,0]
      • audio_topic [default: /audio]
      • high_cut_freq [default: 800]
      • low_cut_freq [default: 1]
      • spectrogram_period [default: 5]
      • gui [default: true]
  • sample/sample_audio_to_spectrogram.launch
    • data flow
      • gui [default: true]
      • filename [default: $(find audio_to_spectrogram)/sample/data/audio_300hz.bag]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged audio_to_spectrogram at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_recognition.git
VCS Type git
VCS Version master
Last Updated 2020-09-09
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Convert audio (audio_common_msgs/AudioData) to spectrogram (sensor_msgs/Image)

Additional Links

No additional links.

Maintainers

  • Naoya Yamaguchi

Authors

No additional authors.

audio_to_spectrogram

This package converts audio data to spectrum and spectrogram data.

Usage

By following command, you can publish audio, spectrum and spectrogram topics. Please set correct args for your microphone configuration, such as mic_sampling_rate or bitdepth.

roslaunch audio_to_spectrogram audio_to_spectrogram.launch

Here is an example using rosbag with 300Hz audio.

roslaunch audio_to_spectrogram sample_audio_to_spectrogram.launch

Spectrum Spectrogram

Scripts

audio_to_spectrum.py

A script to convert audio to spectrum.

  • Publishing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Subscribing topics

    • audio (audio_common_msgs/AudioData)

    Audio stream data from microphone. The audio format must be wave.

  • Parameters

    • ~mic_sampling_rate (Int, default: 16000)

    Sampling rate [Hz] of microphone. Namely, sampling rate of audio topic. - ~fft_sampling_period (Double, default: 0.3)

    Period [s] to sample audio data for one FFT. - ~depth (Int, default: 16)

    Number of bits per audio data. - ~high_cut_freq (Int, default: 800)

    Threshold to limit the maximum frequency of the output spectrum. - ~low_cut_freq (Int, default: 1)

    Threshold to limit the minimum frequency of the output spectrum.

spectrum_to_spectrogram.py

A script to convert spectrum to spectrogram.

  • Publishing topics

    • ~spectrogram (sensor_msgs/Image)

    Spectrogram data, which is concatenation of spectrum in time series. Image format is 32FC1.

  • Subscribing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Parameters

    • ~image_height (Int, default: 300)

    Number of vertical (frequency axis) pixels in output spectrogram. - ~image_width (Int, default: 300)

    Number of horizontal (time axis) pixels in output spectrogram. - ~spectrogram_period (Double, default: 5)

    Period [s] to store spectrum data to create one spectrogram topic. - ~publish_rate (Double, default: image_width / spectrogram_period)

    Publish rate [Hz] of spectrogram topic.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

  • launch/audio_to_spectrogram.launch
    • data flow
      • launch_audio_capture [default: true]
      • bitdepth [default: 16]
      • mic_sampling_rate [default: 16000]
      • n_channel [default: 1]
      • device [default: hw:0,0]
      • audio_topic [default: /audio]
      • high_cut_freq [default: 800]
      • low_cut_freq [default: 1]
      • spectrogram_period [default: 5]
      • gui [default: true]
  • sample/sample_audio_to_spectrogram.launch
    • data flow
      • gui [default: true]
      • filename [default: $(find audio_to_spectrogram)/sample/data/audio_300hz.bag]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged audio_to_spectrogram at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_recognition.git
VCS Type git
VCS Version master
Last Updated 2020-09-09
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Convert audio (audio_common_msgs/AudioData) to spectrogram (sensor_msgs/Image)

Additional Links

No additional links.

Maintainers

  • Naoya Yamaguchi

Authors

No additional authors.

audio_to_spectrogram

This package converts audio data to spectrum and spectrogram data.

Usage

By following command, you can publish audio, spectrum and spectrogram topics. Please set correct args for your microphone configuration, such as mic_sampling_rate or bitdepth.

roslaunch audio_to_spectrogram audio_to_spectrogram.launch

Here is an example using rosbag with 300Hz audio.

roslaunch audio_to_spectrogram sample_audio_to_spectrogram.launch

Spectrum Spectrogram

Scripts

audio_to_spectrum.py

A script to convert audio to spectrum.

  • Publishing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Subscribing topics

    • audio (audio_common_msgs/AudioData)

    Audio stream data from microphone. The audio format must be wave.

  • Parameters

    • ~mic_sampling_rate (Int, default: 16000)

    Sampling rate [Hz] of microphone. Namely, sampling rate of audio topic. - ~fft_sampling_period (Double, default: 0.3)

    Period [s] to sample audio data for one FFT. - ~depth (Int, default: 16)

    Number of bits per audio data. - ~high_cut_freq (Int, default: 800)

    Threshold to limit the maximum frequency of the output spectrum. - ~low_cut_freq (Int, default: 1)

    Threshold to limit the minimum frequency of the output spectrum.

spectrum_to_spectrogram.py

A script to convert spectrum to spectrogram.

  • Publishing topics

    • ~spectrogram (sensor_msgs/Image)

    Spectrogram data, which is concatenation of spectrum in time series. Image format is 32FC1.

  • Subscribing topics

    • ~spectrum (jsk_recognition_msgs/Spectrum)

    Spectrum data calculated from audio by FFT.

  • Parameters

    • ~image_height (Int, default: 300)

    Number of vertical (frequency axis) pixels in output spectrogram. - ~image_width (Int, default: 300)

    Number of horizontal (time axis) pixels in output spectrogram. - ~spectrogram_period (Double, default: 5)

    Period [s] to store spectrum data to create one spectrogram topic. - ~publish_rate (Double, default: image_width / spectrogram_period)

    Publish rate [Hz] of spectrogram topic.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

  • launch/audio_to_spectrogram.launch
    • data flow
      • launch_audio_capture [default: true]
      • bitdepth [default: 16]
      • mic_sampling_rate [default: 16000]
      • n_channel [default: 1]
      • device [default: hw:0,0]
      • audio_topic [default: /audio]
      • high_cut_freq [default: 800]
      • low_cut_freq [default: 1]
      • spectrogram_period [default: 5]
      • gui [default: true]
  • sample/sample_audio_to_spectrogram.launch
    • data flow
      • gui [default: true]
      • filename [default: $(find audio_to_spectrogram)/sample/data/audio_300hz.bag]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged audio_to_spectrogram at answers.ros.org