npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@suzumiyaaoba/voicevox-client

v0.2.4

Published

TypeScript client library for VOICEVOX ENGINE OSS. Auto-generated from OpenAPI schema using openapi-fetch and openapi-typescript.

Readme

@suzumiyaaoba/voicevox-client

CI Security npm version codecov License: MIT

VOICEVOX ENGINE OSS向けのTypeScriptクライアントライブラリです。openapi-fetchopenapi-typescript によりOpenAPIスキーマから型安全なクライアントを提供します。

インストール

npm install @suzumiyaaoba/voicevox-client

使用方法

基本的な使用例

import client from '@suzumiyaaoba/voicevox-client';

// スピーカー一覧を取得
const speakersRes = await client.GET('/speakers');
console.log(speakersRes.data);

// 音声合成用のクエリを作成
const aqRes = await client.POST('/audio_query', {
  params: { query: { text: 'こんにちは', speaker: 3 } },
});

// 音声を合成(WAVをBlobで取得)
const synthRes = await client.POST('/synthesis', {
  params: { query: { speaker: 3 } },
  body: aqRes.data!,
  parseAs: 'blob',
});

const audioBlob = synthRes.data; // Blob

その他のAPI

import client from '@suzumiyaaoba/voicevox-client';

// エンジンのバージョンを取得
const versionRes = await client.GET('/version');
console.log(versionRes.data);

// 対応デバイス情報を取得
const devicesRes = await client.GET('/supported_devices');
console.log(devicesRes.data);

// ユーザー辞書の単語を取得
const dictRes = await client.GET('/user_dict');
console.log(dictRes.data);

// ユーザー辞書に単語を追加
const addRes = await client.POST('/user_dict_word', {
  params: {
    query: {
      surface: 'VOICEVOX',
      pronunciation: 'ボイスボックス',
      accent_type: 1,
    },
  },
});
console.log(addRes.data);

API仕様

このライブラリは以下のVOICEVOX ENGINE APIエンドポイントをサポートしています:

  • 音声合成関連(synthesis, audioQuery, etc.)
  • スピーカー情報(speakers, speakerInfo)
  • 歌唱音声合成(singFrameAudioQuery, frameSynthesis)
  • ユーザー辞書(user_dict関連)
  • プリセット管理(presets関連)
  • その他(version, coreVersions, etc.)

詳細なAPI仕様については、VOICEVOX ENGINEのドキュメントを参照してください。

開発

依存関係のインストール

npm install

テストの実行

# 通常のテスト実行
npm run test

# ワンタイムテスト実行
npm run test:run

# カバレッジ付きテスト
npm run test:coverage

# UI付きテスト
npm run test:ui

ビルド

# ESMビルド
npm run build

# ESM + CJS デュアルビルド
npm run build:dual

コードフォーマット

# チェックのみ
npm run check

# 自動修正
npm run fix

スキーマの更新

# ローカルのVOICEVOXサーバーからスキーマを更新
npm run update-schema

ライセンス

MIT

貢献

プルリクエストや Issue の報告は歓迎です。

関連プロジェクト

  • VOICEVOX
  • VOICEVOX ENGINE
  • openapi-fetchhttps://github.com/drwpow/openapi-fetch
  • openapi-typescripthttps://github.com/drwpow/openapi-typescript