Project

rubysounds

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby library to manage sounds using Google Translate & VLC.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Rubysounds

Ruby library to manage sounds using Google Translate & command line VLC.

How do I get set up?

  1. You need to install VLC (https://www.videolan.org/vlc/index.it.html)

  2. In your terminal (or command prompt): gem install rubysounds

For WINDOWS users

  • Remember to add the VLC path to your Environment Variables.
  • You may also want to: gem install win32-sound

Example usage

# Import library
require 'rubysounds'

# Play audio or video file
play('path_to_file')

# Speak a string with Google voice
speak('Hello Ruby')

# Make a beep (only on Windows systems)
beep(600, 200)

You can find other examples here

Credits

Thanks to rudkovskyi (https://github.com/rudkovskyi/txt2speech) for the Txt2Speech module which converts text to speech using Google Translate API.