Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 99a97a4

Browse files
authored
Merge pull request #6 from speechly/release/v2
Release/v2
2 parents c784045 + 15721a9 commit 99a97a4

File tree

184 files changed

+7955
-9714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+7955
-9714
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
v2.0.1 (2022-09-05)
2+
- ModelExpiredException
3+
- SpeechRecongnitionSettings to contain silence segmentation setting. CloudDecoder support for boost vocabulary.
4+
5+
v2.0.0 (2022-08-31)
6+
- Introduced AudioProcessorSettings and SpeechRecoginitionSettings in MicToSpeechly
7+
- Improved support for On-device decoder on Oculus, Android, OS X (available separately from Speechly): Model bundle support, libSpeechly VAD support
8+
9+
v1.0.0
10+
- First release

README.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Speechly Client for Unity and .NET Standard 2.0 API
1+
# Speechly Client Library for Unity and C#
22

33
[Speechly](https://www.speechly.com/?utm_source=github&utm_medium=react-client&utm_campaign=text) is an API for building voice features into games, XR, applications and web sites. This client library streams audio from a Unity or .NET app to Speechly cloud API and provides a C# API for receiving real-time speech-to-text transcription and natural language understanding results.
44

@@ -12,23 +12,19 @@ Download [speechly-client.unitypackage](https://github.com/speechly/speechly-uni
1212

1313
## Requirements
1414

15-
- A C# development environment conforming to .NET Standard 2.0 API
15+
- A C# development environment with .NET Standard 2.0 API:
1616
- Unity 2018.1 or later (tested with 2019.4.36f1 and 2021.2.12f1)
1717
- Microsoft .NET Core 3 or later (tested with .NET 6.0.200)
1818

19-
## Contents of this repository
20-
21-
- [speechly-client-net-standard-2.0/](speechly-client-net-standard-2.0/) contains the Speechly client library code and a sample .NET console app.
22-
- [speechly-unity/Assets/Speechly/](speechly-unity/Assets/Speechly/) folder contains the same basic .NET Speechly client code plus Unity-specific `MicToSpeechly.cs` microphone code and Unity sample projects:
23-
- [speechly-unity/Assets/SpeechlyExamples/MicToSpeechly/](speechly-unity/Assets/SpeechlyExamples/MicToSpeechly/)
24-
- [speechly-unity/Assets/SpeechlyExamples/AudioFileToSpeechly/](speechly-unity/Assets/SpeechlyExamples/AudioFileToSpeechly/)
25-
- [speechly-unity/Assets/SpeechlyExamples/VoiceCommands/](speechly-unity/Assets/SpeechlyExamples/VoiceCommands/)
26-
2719
## Getting Started with Unity
2820

29-
Import `Speechly/` folder from [speechly-client.unitypackage](https://github.com/speechly/speechly-unity-dotnet/raw/main/speechly-client.unitypackage) that contains code to use Speechly cloud API.
21+
### Installation
3022

31-
> If you want to skip straight to trying out a working sample scene, see [more code examples](#more-code-examples) below.
23+
- Download [speechly-client.unitypackage](https://github.com/speechly/speechly-unity-dotnet/raw/main/speechly-client.unitypackage)
24+
- Select Assets > Import Package > Custom Package... and select the downloaded file.
25+
- Import `Speechly/` folder from the package to your Unity project
26+
- Drop `MicToSpeechly` prefab to your scene hierarchy
27+
- Select it and enter a valid token in the `App Id` field
3228

3329
### Unity example
3430

@@ -73,9 +69,9 @@ public class AudioFileToSpeechly : MonoBehaviour
7369
await SpeechlyClient.Initialize(decoder);
7470
7571
// Send test audio. Callback(s) will fire and log the results.
76-
await client.StartContext();
72+
await client.Start();
7773
client.ProcessAudioFile("Assets/Speechly/00_chinese_restaurant.raw");
78-
await client.StopContext();
74+
await client.Stop();
7975
}
8076
8177
void Update()
@@ -86,7 +82,13 @@ public class AudioFileToSpeechly : MonoBehaviour
8682
}
8783
```
8884

89-
## More code examples
85+
## Contents of this repository
86+
87+
- [speechly-client-net-standard-2.0/](speechly-client-net-standard-2.0/) contains the Speechly client library code and a sample .NET console app.
88+
- [speechly-unity/Assets/Speechly/](speechly-unity/Assets/Speechly/) folder contains the same basic .NET Speechly client code plus Unity-specific `MicToSpeechly.cs` microphone code and Unity sample projects:
89+
- [speechly-unity/Assets/SpeechlyExamples/MicToSpeechly/](speechly-unity/Assets/SpeechlyExamples/MicToSpeechly/)
90+
- [speechly-unity/Assets/SpeechlyExamples/AudioFileToSpeechly/](speechly-unity/Assets/SpeechlyExamples/AudioFileToSpeechly/)
91+
- [speechly-unity/Assets/SpeechlyExamples/VoiceCommands/](speechly-unity/Assets/SpeechlyExamples/VoiceCommands/)
9092

9193
### MicToSpeechly
9294

@@ -107,9 +109,12 @@ To enable microphone input on OS X, set `Player Settings > Settings for PC, Mac
107109
To diagnose problems with device builds, you can do the following:
108110

109111
- First try running MicToSpeechlyScene.unity in the editor without errors.
110-
- Change to Android player, set MicToSpeechlyScene.unity as the main scene and do a `build and run` to deploy the build to on a device.
111-
- On terminal, do `adb logcat -s Unity:D` to follow Unity-related logs from the device.
112-
- Run the app on device. Keep `Hold to talk` button pressed and say "ONE, TWO, THREE". Then release the button.
112+
- Change to Android player, set MicToSpeechlyScene.unity as the main scene and do a `build and run` to deploy and start the build to on a device.
113+
- On the terminal start following Unity-related log lines:
114+
```
115+
adb logcat -s Unity:D
116+
```
117+
- Use the app on device. Ensure it's listening (e.g. keep `Hold to talk` button pressed) and say "ONE, TWO, THREE". Then release the button.
113118
- You should see "ONE, TWO, THREE" displayed in the top-left corner of the screen. If not, see the terminal for errors.
114119

115120
### Android troubleshooting

0 commit comments

Comments
 (0)