Socket
Book a DemoInstallSign in
Socket

simple_captcha_audio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_captcha_audio

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

SimpleCaptchaAudio

Simple audio support for the simple_captcha.

Installation

Add this line to your application's Gemfile:

  gem 'simple_captcha_audio'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_captcha_audio

Usage

The extension adds another parameter to the image generation URL to facilitate the generation of audio file for the same captcha.

Suppose if the URL for the generation for image is http://localhost:3000/simple_captcha?code=3b803d95a91435997917b24046041cc31427aea3&time=1433768850 then simply append audio=true to the above URL to facilitate the generation of the audio file.

So visiting http://localhost:3000/simple_captcha?code=3b803d95a91435997917b24046041cc31427aea3&time=1433768850&audio=true would generate the audio file.

Requirements

  • Ruby >= 1.9.3
  • Rails >= 3.2
  • You need to install espeak, lame and sox system libraries which would help you in the text to speech conversion and exporting the audio to the mp3 format. sox is used for multiple audio files in a single consolidated mp3 file.

You might need to install the above libraries on a Mac-System:

brew install espeak lame
brew install flac sox chromaprint

On ubuntu system

apt-get install espeak lame
apt-get install libsox-fmt-all sox libchromaprint-dev

Contributing

  • Fork it ( https://github.com/[my-github-username]/simple_captcha_audio/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

FAQs

Package last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.