Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
cloudmersive-voice-recognition-api-client
Advanced tools
CloudmersiveVoiceRecognitionApiClient - the Ruby gem for the speechapi
Speech APIs enable you to recognize speech and convert it to text using advanced machine learning, and also to convert text to speech.
This SDK is automatically generated by the Swagger Codegen project:
To build the Ruby code into a gem:
gem build cloudmersive-voice-recognition-api-client.gemspec
Then either install the gem locally:
gem install ./cloudmersive-voice-recognition-api-client-2.0.2.gem
(for development, run gem install --dev ./cloudmersive-voice-recognition-api-client-2.0.2.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'cloudmersive-voice-recognition-api-client', '~> 2.0.2'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'cloudmersive-voice-recognition-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'cloudmersive-voice-recognition-api-client'
# Setup authorization
CloudmersiveVoiceRecognitionApiClient.configure do |config|
# Configure API key authorization: Apikey
config.api_key['Apikey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Apikey'] = 'Bearer'
end
api_instance = CloudmersiveVoiceRecognitionApiClient::RecognizeApi.new
speech_file = File.new('/path/to/file.txt') # File | Speech file to perform the operation on. Common file formats such as WAV, MP3 are supported.
begin
#Recognize audio input as text using machine learning
result = api_instance.recognize_file(speech_file)
p result
rescue CloudmersiveVoiceRecognitionApiClient::ApiError => e
puts "Exception when calling RecognizeApi->recognize_file: #{e}"
end
All URIs are relative to https://api.cloudmersive.com
Class | Method | HTTP request | Description |
---|---|---|---|
CloudmersiveVoiceRecognitionApiClient::RecognizeApi | recognize_file | POST /speech/recognize/file | Recognize audio input as text using machine learning |
CloudmersiveVoiceRecognitionApiClient::SpeakApi | speak_post | POST /speech/speak/text/basicVoice/{format} | Perform text-to-speech on a string |
CloudmersiveVoiceRecognitionApiClient::SpeakApi | speak_text_to_speech | POST /speech/speak/text/voice/basic/audio | Perform text-to-speech on a string |
FAQs
Unknown package
We found that cloudmersive-voice-recognition-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.