Skip to content

fujita-h/voicetext-webapi-client4net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoiceText WebAPI Client for .NET NuGet Package

This is the clinet librray of HOYA Voice Text Web API for .NET.

Istllation

You can install via nuget.org

PM> Install-Package VoiceTextWebAPI.Client

Usage

using VoiceTextWebAPI.Client;
...
public async void btn_OnClick()
{
  var client = new VoiceTextClient
  {
    APIKey = "{your API key here.}",
    Speaker = Speaker.Haruka,
    Emotion = Emotion.Happiness,
    EmotionLevel = EmotionLevel.High,
    Volume = 50,
    Speed = 120,
    Pitch = 120,
    Format = Format.WAV
  };
  var bytes = await client.GetVoiceAsync("こんにちは。");
  File.WriteAllBytes(".\\result.wav", bytes);
}

License

Copyright (c) 2014-2018 @jsakamoto. Licensed under the MIT license.

About

This is the clinet librray of [HOYA Voice Text Web API](https://cloud.voicetext.jp/webapi) for .NET.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%