BREAKING CHANGES
Shortcut methods for LLama2 and BaiChuan LLM are no longer provided, use GetTextCompletionAsync()
and specify model name to continue use.
Highlights
TTS support
Usage:
using var tts = await dashScopeClient.CreateSpeechSynthesizerSocketSessionAsync("cosyvoice-v2");
var taskId = await tts.RunTaskAsync(
new SpeechSynthesizerParameters { Voice = "longxiaochun_v2", Format = "mp3" });
await tts.ContinueTaskAsync(taskId, "博客园");
await tts.ContinueTaskAsync(taskId, "代码改变世界");
await tts.FinishTaskAsync(taskId);
var file = new FileInfo("tts.mp3");
using var stream = file.OpenWrite();
await foreach (var b in tts.GetAudioAsync())
{
stream.WriteByte(b);
}
More text generation parameters
Support TranslationOptions
and SearchOptions
in text completion.
Support Logprobs
in text completion.
What's Changed
- docs: add sdk issue template by @ikesnowy in #102
- feat: support cosy voice by @ikesnowy in #106
- feat: remove baichuan and llama2 methods by @ikesnowy in #108
- feat: add text generation parameters by @ikesnowy in #109
- feat: update readme doc and samples by @ikesnowy in #110
Full Changelog: v0.7.6...v0.8.0