0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

# [C#].NETでText-To-Speechがしたい!(System.**が使いたい!)

Posted at

環境

OS: Windows 10
IDE: Visual Studio 2022

できるようになること

.NETを用いたText-To-Speech(TTS)の設定ができるようになります。

注意点

本記事では筆者がつまづいた、.NETでTTSが使用できるようになるまでの設定方法を解説します。TTS自体の使い方については検索していただけるとたくさんわかりやすい記事が出てくると思いますので、そちらをご参照ください。

手順

  1. Visual Studioを立ち上げ、新たにプロジェクトを作成
  2. WPF Applicationを選択。.NET WPF Applicationです。
    image.png
    名前は何でもよい(今回は安直にTestにしています)のでNextで次に進みます。
  3. Frameworkはデフォルトで指定してある、.NET 6.0 (Long-term support)を選択⇒Createをクリック。初期状態は以下の画像のようになっていると思います。
    image.png
  4. その後、Solution Explorer(右側にある)のプロジェクト名の上で右クリック。Manage NuGet Packagesを選択(.NET Frameworkの時は、Referenceに.dllを追加していたかと思いますが、.NETからはNuGetで管理するようになりました)。
    image.png
  5. Browseから「speech」で検索。
  6. System.Speechを選択し、インストール。
    image.png

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?