Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@re-ai/speech

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@re-ai/speech

ReAI语音识别和文字转语音服务的接口

  • 0.2.19
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-86.67%
Maintainers
0
Weekly downloads
 
Created
Source

ReAI-Speech 语音工具

ReAI-Speech 是一个灵活的 Node.js 库,提供了语音识别和文字转语音服务的接口。支持多种后端服务。

更新

  • 24.12.10
    • 添加fishAudio接口
  • 24.08.09:
    • 添加腾讯云语音识别,语音合成 (ServiceTypes.TXCloud)
  • 24.05.06:
    • 添加日志管理,日志等级,OFF = 0,ERROR = 1,WARN = 2,INFO = 3,DEBUG = 4, 默认为INFO, 设置环境变量REAI_LOG_LEVEL控制日志等级,比如REAI_LOG_LEVEL=0可以关闭日志输出
  • 24.05.05:添加语音翻译识别,支持多目标语言
  • 24.05.04:
    • 添加Azure语音对话识别(ServiceTypes.Azure, conversationTranscribe)
    • 修改语音识别返回结果,加上句子数据(详细见语音识别示例)
  • 24.05.03: 添加ServiceTypes.Local

TODO

- [x] 翻译
- [ ] 说话人识别
- [ ] 批量听录
- [ ] 自定义语音

安装

npm install @re-ai/speech

使用

基础调用

import { AudioStream, ReAISpeech, ServiceTypes, SupportedLanguage } from "@re-ai/speech"

// 获取 Azure 服务实例,使用环境变量配置

// .env文件配置
// AZURE_SPEECH_KEY=你的key
// AZURE_SPEECH_REGION=你的region
const azureService = ReAISpeech.getService(ServiceTypes.Azure);

// or 传入配置
const service = ReAISpeech.getService(ServiceTypes.Azure, { subscriptionKey: KEY, region: REGION })
  • 获取语言列表和发音人列表
  • 语音识别(ASR)
  • 文字转语音(TTS)
  • 对话语音识别
  • 语音翻译

FAQs

Package last updated on 10 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc