Skip to content

Add sample scene info to README #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@ difyManager.StartMicrophone();
// ... wait for user input ...
AudioClip recording = difyManager.StopMicrophone();


string transcription = await difyManager.AudioToText(recording);
Debug.Log("Transcription: " + transcription);
```

## Sample Scene

The package includes a simple example scene that demonstrates streaming chat
via Unity Visual Scripting. After installing the package, open
`Chat Sample in streaming mode.unity` from
`Packages/com.from2001.dify-client/Samples~/Chat sample in streaming mode`.
This scene shows how to send a message and display the AI response in real time.

## Visual Scripting Usage

This package includes Visual Scripting nodes for no-code development:
Expand Down