
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ai-tools-sdk
Advanced tools
npm install ai-tools-sdk
OR
yarn add ai-tools-sdk
import AITools from 'ai-tools-sdk';
const App = () => {
// This converts spoken source speech to text.
// mode_id_stt = model id for stt
// base64 = base64 text of audio
// source_lang_code = short code of spoken language
const text = await AITools.stt(model_id_stt, base64, source_lang_code);
// This will translate the text to target language of model passed.
// model_id_translation = model id of spoken langugage to english translator
// text = text to be translated
const translated_txt = await AITools.translate(model_id_translation, text);
// This gives back number from speech.
// model_id_stt = model id of spoken langugage
// base64 = base64 text of audio
// source_lang_code = short code of spoken language like 'en' for english
// model_id_translation = model id of spoken langugage to english translator
const number = await AITools.stn(model_id_stt, base64, source_lang_code, model_id_translation);
// The stn (Speech to Number) function first converts the speech to its native language text then that text is translated to english and then english words are converted to numbers.
// Example Flow: STT -> 'एक दो तीन' -> TRANSLATE -> 'one two three' -> STN -> '123'
// This returns a base64 audio text that can be played in any audio component.
// model_id_tts = model id for tts
// text = text to be converted to speech
// gender = for voice ('male' / 'female')
const res = await AITools.tts(model_id_tts, text, gender);
let audio = new Audio(res);
audio.play();
};
MIT
FAQs
AI Tools SDK
The npm package ai-tools-sdk receives a total of 2 weekly downloads. As such, ai-tools-sdk popularity was classified as not popular.
We found that ai-tools-sdk 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.