├── .gitmodules
├── Streaming
├── SPIDStreamingAPI-WPF-Samples
│ ├── images
│ │ └── UI_stop.gif
│ ├── SampleAudios
│ │ ├── TestDialogue.wav
│ │ ├── User1_Enrollment.wav
│ │ └── User2_Enrollment.wav
│ ├── Assets
│ │ └── Microsoft-logo_rgb_c-gray.png
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── Resources.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ └── Resources.resx
│ ├── App.xaml
│ ├── packages.config
│ ├── App.config
│ ├── MainWindow.xaml
│ ├── SpeakersListPage.xaml
│ ├── App.xaml.cs
│ ├── MainWindow.xaml.cs
│ ├── EnrollSpeakersPage.xaml
│ └── StreamPage.xaml
├── Microsoft.Cognitive.SpeakerRecognition.Streaming
│ ├── packages.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Audio
│ │ ├── AudioSpecifications.cs
│ │ ├── AudioHeaderParsingResult.cs
│ │ └── AudioContainer.cs
│ ├── Client
│ │ └── ClientFactory.cs
│ └── Result
│ │ └── RecognitionResult.cs
└── SPIDStreamingAPI-WPF-Samples.sln
├── Verification
├── SPIDVerificationAPI_WPF_Sample
│ ├── Assets
│ │ └── Microsoft-logo_rgb_c-gray.png
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── Resources.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ └── Resources.resx
│ ├── App.xaml
│ ├── packages.config
│ ├── App.config
│ ├── MainWindow.xaml
│ ├── App.xaml.cs
│ ├── VerifySpeakerPage.xaml
│ ├── EnrollPage.xaml
│ ├── MainWindow.xaml.cs
│ └── IsolatedStorageHelper.cs
└── SPIDVerificationAPI_WPF_Sample.sln
├── ClientLibrary
├── build_nuget_package.cmd
├── packages.config
├── ClientLibrary.sln
├── ClientLibrary.nuspec
├── Properties
│ └── AssemblyInfo.cs
└── Contract
│ ├── ErrorResponse.cs
│ ├── Verification
│ ├── VerificationPhrase.cs
│ ├── CreateProfileResponse.cs
│ ├── Result.cs
│ ├── PhrasesException.cs
│ ├── VerificationException.cs
│ ├── Enrollment.cs
│ ├── Verification.cs
│ └── Profile.cs
│ ├── Identification
│ ├── EnrollmentOperation.cs
│ ├── CreateProfileResponse.cs
│ ├── IdentificationOperation.cs
│ ├── OperationLocation.cs
│ ├── IdentificationException.cs
│ ├── Status.cs
│ ├── Identification.cs
│ ├── Enrollment.cs
│ ├── Profile.cs
│ └── Operation.cs
│ ├── ErrorMessage.cs
│ ├── EnrollmentBase.cs
│ ├── DeleteProfileException.cs
│ ├── ProfileException.cs
│ ├── EnrollmentException.cs
│ ├── GetProfileException.cs
│ ├── CreateProfileException.cs
│ ├── ResetEnrollmentsException.cs
│ ├── Confidence.cs
│ ├── EnrollmentStatus.cs
│ └── ProfileBase.cs
├── Identification
├── SPIDIdentificationAPI-WPF-Samples
│ ├── Assets
│ │ └── Microsoft-logo_rgb_c-gray.png
│ ├── App.config
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── Resources.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ └── Resources.resx
│ ├── App.xaml
│ ├── packages.config
│ ├── MainWindow.xaml
│ ├── SpeakersListPage.xaml
│ ├── App.xaml.cs
│ ├── MainWindow.xaml.cs
│ ├── IdentifyFilePage.xaml
│ └── EnrollSpeakersPage.xaml
└── SPIDIdentificationAPI-WPF-Samples.sln
├── LICENSE-IMAGE.md
├── LICENSE.md
├── ThirdPartyNotices.txt
├── CONTRIBUTING.md
├── README.md
└── .gitignore
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "Cognitive-Common-Windows"]
2 | path = Cognitive-Common-Windows
3 | url = https://github.com/Microsoft/Cognitive-Common-Windows.git
4 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/images/UI_stop.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Streaming/SPIDStreamingAPI-WPF-Samples/images/UI_stop.gif
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/TestDialogue.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/TestDialogue.wav
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/User1_Enrollment.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/User1_Enrollment.wav
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/User2_Enrollment.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Streaming/SPIDStreamingAPI-WPF-Samples/SampleAudios/User2_Enrollment.wav
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Assets/Microsoft-logo_rgb_c-gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Streaming/SPIDStreamingAPI-WPF-Samples/Assets/Microsoft-logo_rgb_c-gray.png
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Assets/Microsoft-logo_rgb_c-gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Verification/SPIDVerificationAPI_WPF_Sample/Assets/Microsoft-logo_rgb_c-gray.png
--------------------------------------------------------------------------------
/ClientLibrary/build_nuget_package.cmd:
--------------------------------------------------------------------------------
1 | rem NOTE NOTE Copy the signed DLL into obj\release folder before running this command
2 | nuget pack ClientLibrary.csproj -Build -OutputDirectory bin\release -Properties Configuration=Release;Platform=AnyCPU
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Assets/Microsoft-logo_rgb_c-gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Cognitive-SpeakerRecognition-Windows/HEAD/Identification/SPIDIdentificationAPI-WPF-Samples/Assets/Microsoft-logo_rgb_c-gray.png
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ClientLibrary/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/LICENSE-IMAGE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) Microsoft Corporation
2 |
3 | All rights reserved.
4 |
5 | Microsoft Cognitive Services Client SDK License for Sample Image
6 |
7 | *This license applies only to the sample images. The SDK code is licensed separately, please refer to [LICENSE]()*
8 |
9 | Microsoft may make sample images available in connection with the SDK for the purposes of illustrating the operation of Microsoft Cognitive Services (https://www.microsoft.com/cognitive-services). If no separate license terms are provided with the images, Microsoft grants you a personal, nonexclusive, revocable, royalty-free right to use the images solely within your organization to test the operation of Microsoft Cognitive Services, provided that you agree to indemnify, hold harmless, and defend Microsoft and its suppliers from and against any claims or lawsuits, including attorneys’ fees, that arise or result from the use or distribution of the images. Except as expressly provided in this section you have no license to modify or distribute the images.
10 |
--------------------------------------------------------------------------------
/ClientLibrary/ClientLibrary.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientLibrary", "ClientLibrary.csproj", "{E8EE0C19-C449-4489-869B-6B81F4873B24}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {E8EE0C19-C449-4489-869B-6B81F4873B24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {E8EE0C19-C449-4489-869B-6B81F4873B24}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {E8EE0C19-C449-4489-869B-6B81F4873B24}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {E8EE0C19-C449-4489-869B-6B81F4873B24}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDVerificationAPI_WPF_Sample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDIdentificationAPI_WPF_Samples.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDIdentificationStreaming_WPF_Samples.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Microsoft Cognitive Services SDK
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | All rights reserved.
6 |
7 | *This license applies only to the SDK code. Sample images are licensed separately, please refer to [LICENSE-IMAGE]()*
8 |
9 | MIT License
10 |
11 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15 |
--------------------------------------------------------------------------------
/ClientLibrary/ClientLibrary.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | $title$
7 | Microsoft
8 | Microsoft
9 | https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows/LICENSE.md
10 | https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
11 | https://portalstoragewu.blob.core.windows.net/media/Default/Media/Speaker%20Recognition/Icons_Speech_Speaker.svg
12 | true
13 | $description$
14 | Use Speaker Recognition API Client Library to enrich your apps with Microsoft's state-of-the-art cloud-based speaker recognition algorithms.
15 | Add support to the short audio feature. Users can now waive the audio duration requirements for the speaker identification.
16 | Copyright (c) 2016
17 | Project Oxford Speaker Recognition
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ClientLibrary/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("Microsoft.ProjectOxford.SpeakerRecognition")]
10 | [assembly: AssemblyDescription("Microsoft Project Oxford Speaker Recognition Client Library")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("Microsoft Corporation")]
13 | [assembly: AssemblyProduct("Microsoft.ProjectOxford.SpeakerRecognition")]
14 | [assembly: AssemblyCopyright("Copyright © 2016")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: NeutralResourcesLanguage("en")]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.1.0.0")]
30 | [assembly: AssemblyFileVersion("1.1.0.0")]
31 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPIDVerificationAPI_WPF_Sample", "SPIDVerificationAPI_WPF_Sample\SPIDVerificationAPI_WPF_Sample.csproj", "{29133D4A-D92C-41C1-B7F1-0EA431BA4FD8}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleUserControlLibrary", "..\Cognitive-Common-Windows\SampleUserControlLibrary\SampleUserControlLibrary.csproj", "{735929F0-F8F1-4D93-B027-5D034FA7892B}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {29133D4A-D92C-41C1-B7F1-0EA431BA4FD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {29133D4A-D92C-41C1-B7F1-0EA431BA4FD8}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {29133D4A-D92C-41C1-B7F1-0EA431BA4FD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {29133D4A-D92C-41C1-B7F1-0EA431BA4FD8}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPIDIdentificationAPI-WPF-Samples", "SPIDIdentificationAPI-WPF-Samples\SPIDIdentificationAPI-WPF-Samples.csproj", "{D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleUserControlLibrary", "..\Cognitive-Common-Windows\SampleUserControlLibrary\SampleUserControlLibrary.csproj", "{735929F0-F8F1-4D93-B027-5D034FA7892B}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle(" Microsoft.Cognitive.SpeakerRecognition.Streaming")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct(" Microsoft.Cognitive.SpeakerRecognition.Streaming")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("8a58e960-8d3b-4da7-a111-270af62fe812")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
38 | //[assembly: InternalsVisibleTo(" Microsoft.Cognitive.SpeakerRecognition.Streaming.UnitTest")]
39 |
--------------------------------------------------------------------------------
/ThirdPartyNotices.txt:
--------------------------------------------------------------------------------
1 | THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
2 | Do Not Translate or Localize
3 |
4 | This project incorporates components from the projects listed below. The original copyright notices
5 | and licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not
6 | expressly granted herein, whether by implication, estoppel or otherwise.
7 |
8 |
9 | 1. newtonsoft.json version 8.0.2 (https://github.com/JamesNK/Newtonsoft.Json)
10 |
11 | %% newtonsoft.json NOTICES AND INFORMATION BEGIN HERE
12 | =========================================
13 | The MIT License (MIT)
14 |
15 | Copyright (c) 2007 James Newton-King
16 |
17 | Permission is hereby granted, free of charge, to any person obtaining a copy of
18 | this software and associated documentation files (the "Software"), to deal in
19 | the Software without restriction, including without limitation the rights to
20 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
21 | the Software, and to permit persons to whom the Software is furnished to do so,
22 | subject to the following conditions:
23 |
24 | The above copyright notice and this permission notice shall be included in all
25 | copies or substantial portions of the Software.
26 |
27 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
29 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
30 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
31 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | =========================================
34 | END OF newtonsoft.json NOTICES AND INFORMATION
35 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/SpeakersListPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | Click on [Update List] to load all profiles
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/SpeakersListPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | Click on [Update List] to load all profiles
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System.Windows;
35 |
36 | namespace SPIDVerificationAPI_WPF_Sample
37 | {
38 | ///
39 | /// Interaction logic for App.xaml
40 | ///
41 | public partial class App : Application
42 | {
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/App.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System.Windows;
35 |
36 | namespace SPIDIdentificationAPI_WPF_Samples
37 | {
38 | ///
39 | /// Interaction logic for App.xaml
40 | ///
41 | public partial class App : Application
42 | {
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/VerifySpeakerPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/App.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace SPIDIdentificationStreaming_WPF_Samples
35 | {
36 | using System.Windows;
37 |
38 | ///
39 | /// Interaction logic for App.xaml
40 | ///
41 | public partial class App : Application
42 | {
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/ErrorResponse.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
35 | {
36 | ///
37 | /// A class encapsulating the error response
38 | ///
39 | internal class ErrorResponse
40 | {
41 | ///
42 | /// ErrorResponse object encapsulating details about the error
43 | ///
44 | public ErrorMessage Error { get; set; }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/VerificationPhrase.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
35 | {
36 | ///
37 | /// A class encapsulating the verification phrase used by the speaker
38 | ///
39 | public class VerificationPhrase
40 | {
41 | ///
42 | /// The verification phrase
43 | ///
44 | public string Phrase { get; set; }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Contributing to Microsoft Cognitive Services Client Libraries & Samples
2 | ===============================================
3 | So, you want to contribute on a client library or sample for one of the Microsoft Cognitive Services.
4 | Here's what you need to know.
5 |
6 | 1. Each SDK should include both a client library and a sample showing the API in
7 | action
8 |
9 | 2. When working on an SDK, it's important that we are consistent from project to project, so we ask you to follow the coding guidelines below:
10 |
11 | - Windows [(Coding guidelines for C#)](https://msdn.microsoft.com/en-us/library/ff926074.aspx) -- also reference our [common Windows code](https://github.com/Microsoft/Cognitive-common-windows) for building samples
12 |
13 | - Android [(Coding guidelines for
14 | Java)]()
15 |
16 | - iOS Objective-C [(Coding guidelines for
17 | Cocoa)]()
18 |
19 | - Optional: Client Javascript ([Coding guidelines for
20 | npm]())
21 |
22 | 3. Samples are important for illustrating how to actually call into the API.
23 | Samples should be as visual and reusable as possible.
24 |
25 | - Do:
26 |
27 | - Create a UI sample when possible.
28 |
29 | - Make your sample user friendly. Expect that developers will want to try
30 | different mainline scenarios and key APIs.
31 |
32 | - Create code that's easy for other developers to copy/paste into their
33 | own solutions
34 |
35 | - Consider:
36 |
37 | - Adding UI to allow devs to quickly copy/paste subscription keys, instead
38 | of updating them in the code or using a config file. The
39 | FaceAPI-WPF-Samples.sln provides an example.
40 |
41 | - Don't:
42 |
43 | - Leave your subscription key in the source of samples. You do not want your key to be abused by others.
44 |
45 | Happy coding!
46 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/EnrollmentOperation.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
35 | {
36 | ///
37 | /// A class that encapsulates the response from an enrollment operation during an identification scenario
38 | ///
39 | public class EnrollmentOperation : Operation
40 | {
41 | ///
42 | /// The processing result of the enrollment call
43 | ///
44 | public Enrollment ProcessingResult { get; set; }
45 | }
46 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/CreateProfileResponse.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using System;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
38 | {
39 | ///
40 | /// Encapsulates the profile creation response
41 | ///
42 | public class CreateProfileResponse
43 | {
44 | ///
45 | /// Speaker profile ID
46 | ///
47 | [JsonProperty("verificationProfileId")]
48 | public Guid ProfileId { get; set; }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/CreateProfileResponse.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using System;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
38 | {
39 | ///
40 | /// Encapsulates the profile creation response
41 | ///
42 | public class CreateProfileResponse
43 | {
44 | ///
45 | /// Speaker profile ID
46 | ///
47 | [JsonProperty("identificationProfileId")]
48 | public Guid ProfileId { get; set; }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/IdentificationOperation.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
35 | {
36 | ///
37 | /// A class that encapsulates the response from an identification operation during an identification scenario
38 | ///
39 | public class IdentificationOperation : Operation
40 | {
41 | ///
42 | /// The processing result of the identification call
43 | ///
44 | public Identification ProcessingResult { get; set; }
45 | }
46 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/ErrorMessage.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
35 | {
36 | ///
37 | /// An object encapsulating an error message
38 | ///
39 | internal class ErrorMessage
40 | {
41 | ///
42 | /// A string representation of the error code
43 | ///
44 | public string Code { get; set; }
45 |
46 | ///
47 | /// A string representation of the error message
48 | ///
49 | public string Message { get; set; }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/EnrollmentBase.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
38 | {
39 | ///
40 | /// A class encapsulating a speaker enrollment for verification/identification
41 | ///
42 | public class EnrollmentBase
43 | {
44 | ///
45 | /// The enrollment status of the profile
46 | ///
47 | [JsonConverter(typeof(StringEnumConverter))]
48 | public EnrollmentStatus EnrollmentStatus { get; set; }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/OperationLocation.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 | using System;
37 |
38 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
39 | {
40 | ///
41 | /// An object encapsulating the location of an identification/enrollment request processed by the service
42 | ///
43 | public class OperationLocation
44 | {
45 | ///
46 | /// The Url to query enrollment/identification operation status
47 | ///
48 | public string Url { get; set; }
49 | }
50 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/DeleteProfileException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
35 | {
36 | ///
37 | /// A class encapsulating an exception raised during profile deletion
38 | ///
39 | public class DeleteProfileException : ProfileException
40 | {
41 | ///
42 | /// A public constructor creating the exception with a specified message
43 | ///
44 | /// Exception message
45 | public DeleteProfileException(string message) : base(message)
46 | {
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/Result.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
35 | {
36 | ///
37 | /// An enum encoding the verification result
38 | ///
39 | public enum Result
40 | {
41 | ///
42 | /// Result value indicating that the current speaker passed the verification attempt
43 | ///
44 | Accept,
45 |
46 | ///
47 | /// Result value indicating that the current speaker failed the verification attempt
48 | ///
49 | Reject
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/ProfileException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
37 | {
38 | ///
39 | /// A class encapsulating an exception raised while performing an action on a profile
40 | ///
41 | public class ProfileException : Exception
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public ProfileException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/EnrollmentException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during speaker enrollment
40 | ///
41 | public class EnrollmentException : Exception
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public EnrollmentException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/GetProfileException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during profile(s) retrieval
40 | ///
41 | public class GetProfileException : ProfileException
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public GetProfileException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/CreateProfileException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during profile creation
40 | ///
41 | public class CreateProfileException : ProfileException
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public CreateProfileException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/PhrasesException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during phrase retrieval
40 | ///
41 | public class PhrasesException : Exception
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public PhrasesException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/VerificationException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during speaker verification
40 | ///
41 | public class VerificationException : Exception
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public VerificationException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/ResetEnrollmentsException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
37 | {
38 | ///
39 | /// A class encapsulating an exception raised while resetting enrollments for a profile
40 | ///
41 | public class ResetEnrollmentsException : ProfileException
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public ResetEnrollmentsException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/IdentificationException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
37 | {
38 | ///
39 | /// A class encapsulating an exception raised during speaker identification
40 | ///
41 | public class IdentificationException : Exception
42 | {
43 | ///
44 | /// A public constructor creating the exception with a specified message
45 | ///
46 | /// Exception message
47 | public IdentificationException(string message) : base(message)
48 | {
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Confidence.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
35 | {
36 | ///
37 | /// An enum encoding the confidence of the identification/verification result
38 | ///
39 | public enum Confidence
40 | {
41 | ///
42 | /// The confidence of the identification/verification is low
43 | ///
44 | Low,
45 |
46 | ///
47 | /// The confidence of the identification/verification is normal
48 | ///
49 | Normal,
50 |
51 | ///
52 | /// The confidence of the identification/verification is high
53 | ///
54 | High
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Audio/AudioSpecifications.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace Microsoft.Cognitive.SpeakerRecognition.Streaming.Audio
35 | {
36 | using System;
37 | using System.Collections.Generic;
38 | using System.Linq;
39 | using System.Text;
40 | using System.Threading.Tasks;
41 |
42 | ///
43 | /// Types of audio encoding
44 | ///
45 | public enum AudioEncoding
46 | {
47 | ///
48 | /// Default value
49 | ///
50 | None = -1,
51 |
52 | ///
53 | /// PCM
54 | ///
55 | PCM = 0
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/EnrollmentStatus.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
35 | {
36 | ///
37 | /// An enum encoding the status of a speaker enrollments for verification/identification
38 | ///
39 | public enum EnrollmentStatus
40 | {
41 | ///
42 | /// The profile is currently enrolling and is not ready for verification/identification
43 | ///
44 | Enrolling,
45 |
46 | ///
47 | /// The profile is currently training and is not ready for verification/identification
48 | ///
49 | Training,
50 |
51 | ///
52 | /// The profile is currently enrolled and is ready for verification/identification
53 | ///
54 | Enrolled
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/Enrollment.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 |
35 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
36 | {
37 | ///
38 | /// A class encapsulating a speaker enrollment for a verification task
39 | ///
40 | public class Enrollment : EnrollmentBase
41 | {
42 | ///
43 | /// The number of remaining enrollments for a profile
44 | ///
45 | public int RemainingEnrollments { get; set; }
46 |
47 | ///
48 | /// The current speaker verification profile enrollments count.
49 | ///
50 | public int EnrollmentsCount { get; set; }
51 |
52 | ///
53 | /// The verification phrase used by the speaker
54 | ///
55 | public string Phrase { get; set; }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/Status.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
35 | {
36 | ///
37 | /// Identification operation status
38 | ///
39 | ///
40 | /// An enum to encapsulate the enrollment/identification operation status
41 | ///
42 | public enum Status
43 | {
44 | ///
45 | /// The operation is not started
46 | ///
47 | NotStarted,
48 |
49 | ///
50 | /// The operation is running
51 | ///
52 | Running,
53 |
54 | ///
55 | /// The operation is finished and failed
56 | ///
57 | Failed,
58 |
59 | ///
60 | /// The operation is finished and succeeded
61 | ///
62 | Succeeded
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/Identification.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 | using System;
37 |
38 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
39 | {
40 | ///
41 | /// This encapsulates the processing result of an identification call during an identification scenario
42 | ///
43 | public class Identification
44 | {
45 | ///
46 | /// The identified speaker's identification profile ID. If the speaker is not identified,
47 | /// this value will be "00000000-0000-0000-0000-000000000000".
48 | ///
49 | public Guid IdentifiedProfileId { get; set; }
50 |
51 | ///
52 | /// The confidence value of the identification.
53 | ///
54 | [JsonConverter(typeof(StringEnumConverter))]
55 | public Confidence Confidence { get; set; }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/Verification.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
38 | {
39 | ///
40 | /// A class that encapsulates a verification call result
41 | ///
42 | public class Verification
43 | {
44 | ///
45 | /// The verification result
46 | ///
47 | [JsonConverter(typeof(StringEnumConverter))]
48 | public Result Result { get; set; }
49 |
50 | ///
51 | /// The verification result confidence
52 | ///
53 | [JsonConverter(typeof(StringEnumConverter))]
54 | public Confidence Confidence { get; set; }
55 |
56 | ///
57 | /// The verification phrase recognized during enrollment
58 | ///
59 | public string Phrase { get; set; }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Audio/AudioHeaderParsingResult.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace Microsoft.Cognitive.SpeakerRecognition.Streaming.Audio
35 | {
36 | using System;
37 | using System.Collections.Generic;
38 | using System.Linq;
39 | using System.Text;
40 | using System.Threading.Tasks;
41 |
42 | ///
43 | /// Results of parsing an audio file header
44 | ///
45 | internal class AudioHeaderParsingResult
46 | {
47 | ///
48 | /// Gets or sets the start position of data chunck
49 | ///
50 | public int DataChunckStart
51 | {
52 | get; set;
53 | }
54 |
55 | ///
56 | /// Gets or sets number of bytes per second
57 | ///
58 | public int NumberofBytesPerSecond
59 | {
60 | get; set;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/Enrollment.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
38 | {
39 | ///
40 | /// This encapsulates the processing result of an enrollment during an identification scenario
41 | ///
42 | public class Enrollment : EnrollmentBase
43 | {
44 | ///
45 | /// Remaining number of speech seconds to complete minimum enrollment.
46 | ///
47 | public double RemainingEnrollmentSpeechTime { get; set; }
48 |
49 | ///
50 | /// Seconds of useful speech in enrollment audio.
51 | ///
52 | public double SpeechTime { get; set; }
53 |
54 | ///
55 | /// Speaker identification profile enrollment length in seconds of speech.
56 | ///
57 | public double EnrollmentSpeechTime { get; set; }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Verification/Profile.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 | using Newtonsoft.Json;
34 | using System;
35 |
36 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Verification
37 | {
38 | ///
39 | /// A class encapsulating the response returned by the service on creating or retrieving a speaker profile
40 | /// for a verification service
41 | ///
42 | public class Profile : ProfileBase
43 | {
44 | ///
45 | /// The speaker profile Id
46 | ///
47 | [JsonProperty("verificationProfileId")]
48 | public Guid ProfileId { get; set; }
49 |
50 | ///
51 | /// The remaining number of required enrollments if the enrollmentStatus is Enrolling
52 | ///
53 | public int RemainingEnrollmentsCount { get; set; }
54 |
55 | ///
56 | /// The number of existing enrollments
57 | ///
58 | public int EnrollmentsCount { get; set; }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/Profile.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using System;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
38 | {
39 |
40 | ///
41 | /// A class encpaulating the user profile for an identification tasks
42 | ///
43 | public class Profile : ProfileBase
44 | {
45 | ///
46 | /// Speaker profile ID
47 | ///
48 | [JsonProperty("identificationProfileId")]
49 | public Guid ProfileId { get; set; }
50 |
51 | ///
52 | /// The total length of audio - in seconds of speech - submitted for enrollment
53 | ///
54 | [JsonProperty("enrollmentSpeechTime")]
55 | public double EnrollmentSpeechSeconds { get; set; }
56 |
57 | ///
58 | /// The remaining audio length - in seconds of speech - for the user to be enrolled
59 | ///
60 | [JsonProperty("remainingEnrollmentSpeechTime")]
61 | public double RemainingEnrollmentSpeechSeconds { get; set; }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/ClientLibrary/Contract/Identification/Operation.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using Newtonsoft.Json;
35 | using Newtonsoft.Json.Converters;
36 | using System;
37 |
38 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification
39 | {
40 | ///
41 | /// An object encapsulating the state of an identification/enrollment request processed by the service
42 | ///
43 | public class Operation
44 | {
45 | ///
46 | /// The operation status
47 | ///
48 | [JsonConverter(typeof(StringEnumConverter))]
49 | public Status Status { get; set; }
50 |
51 | ///
52 | /// The creation date time for the operation request
53 | ///
54 | public DateTime CreatedDateTime { get; set; }
55 |
56 | ///
57 | /// The last action date time for the operation
58 | ///
59 | public DateTime LastActionDateTime { get; set; }
60 |
61 | ///
62 | /// The message in case of failure
63 | ///
64 | public string Message { get; set; }
65 | }
66 | }
--------------------------------------------------------------------------------
/ClientLibrary/Contract/ProfileBase.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 | using Newtonsoft.Json;
34 | using Newtonsoft.Json.Converters;
35 | using System;
36 |
37 | namespace Microsoft.ProjectOxford.SpeakerRecognition.Contract
38 | {
39 | ///
40 | /// A class encapsulating the response returned by the service on creating or retrieving a speaker profile
41 | ///
42 | public class ProfileBase
43 | {
44 | ///
45 | /// The speaker profile locale.
46 | ///
47 | public string Locale { get; set; }
48 |
49 | ///
50 | /// The timestamp of profile creation
51 | ///
52 | public DateTime CreatedDateTime { get; set; }
53 |
54 | ///
55 | /// The timestamp for the last used time for the given profile
56 | ///
57 | public DateTime LastActionDateTime { get; set; }
58 |
59 | ///
60 | /// The profile enrolling status
61 | ///
62 | [JsonConverter(typeof(StringEnumConverter))]
63 | public EnrollmentStatus EnrollmentStatus { get; set; }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/EnrollPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDVerificationAPI_WPF_Sample.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPIDVerificationAPI_WPF_Sample.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDIdentificationAPI_WPF_Samples.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPIDIdentificationAPI_WPF_Samples.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SPIDIdentificationStreaming_WPF_Samples.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPIDIdentificationStreaming_WPF_Samples.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using SampleUserControlLibrary;
35 | using System.Windows;
36 |
37 | namespace SPIDIdentificationAPI_WPF_Samples
38 | {
39 | ///
40 | /// Interaction logic for MainWindow.xaml
41 | ///
42 | public partial class MainWindow : Window
43 | {
44 | ///
45 | /// Gets the sample scenario control
46 | ///
47 | public SampleScenarios ScenarioControl
48 | {
49 | get
50 | {
51 | return _scenariosControl;
52 | }
53 | }
54 |
55 | ///
56 | /// Constructor to initialize the Main Window
57 | ///
58 | public MainWindow()
59 | {
60 | InitializeComponent();
61 |
62 | _scenariosControl.SampleTitle = "Speaker Identification Sample";
63 | _scenariosControl.SampleScenarioList = new Scenario[]
64 | {
65 | new Scenario{ Title = "Enroll Speakers", PageClass = typeof(EnrollSpeakersPage)},
66 | new Scenario{ Title = "Identify File", PageClass = typeof(IdentifyFilePage)},
67 | };
68 |
69 | _scenariosControl.Disclaimer = string.Empty;
70 |
71 | _scenariosControl.ClearLog();
72 | }
73 |
74 | ///
75 | /// Writes a message in the status area
76 | ///
77 | /// The message to log
78 | public void Log(string message)
79 | {
80 | _scenariosControl.Log(message);
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPIDIdentificationStreaming-WPF-Samples", "SPIDStreamingAPI-WPF-Samples\SPIDIdentificationStreaming-WPF-Samples.csproj", "{D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleUserControlLibrary", "..\Cognitive-Common-Windows\SampleUserControlLibrary\SampleUserControlLibrary.csproj", "{735929F0-F8F1-4D93-B027-5D034FA7892B}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Cognitive.SpeakerRecognition.Streaming", "Microsoft.Cognitive.SpeakerRecognition.Streaming\Microsoft.Cognitive.SpeakerRecognition.Streaming.csproj", "{8A58E960-8D3B-4DA7-A111-270AF62FE812}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Debug|x64 = Debug|x64
16 | Release|Any CPU = Release|Any CPU
17 | Release|x64 = Release|x64
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|x64.ActiveCfg = Debug|x64
23 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Debug|x64.Build.0 = Debug|x64
24 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|x64.ActiveCfg = Release|x64
27 | {D4C60FF7-ED2B-4302-B73E-09D01EEFE1B6}.Release|x64.Build.0 = Release|x64
28 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|Any CPU.Build.0 = Debug|Any CPU
30 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|x64.ActiveCfg = Debug|Any CPU
31 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Debug|x64.Build.0 = Debug|Any CPU
32 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.ActiveCfg = Release|Any CPU
33 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|Any CPU.Build.0 = Release|Any CPU
34 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|x64.ActiveCfg = Release|Any CPU
35 | {735929F0-F8F1-4D93-B027-5D034FA7892B}.Release|x64.Build.0 = Release|Any CPU
36 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Debug|Any CPU.Build.0 = Debug|Any CPU
38 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Debug|x64.ActiveCfg = Debug|x64
39 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Debug|x64.Build.0 = Debug|x64
40 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Release|Any CPU.ActiveCfg = Release|Any CPU
41 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Release|Any CPU.Build.0 = Release|Any CPU
42 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Release|x64.ActiveCfg = Release|x64
43 | {8A58E960-8D3B-4DA7-A111-270AF62FE812}.Release|x64.Build.0 = Release|x64
44 | EndGlobalSection
45 | GlobalSection(SolutionProperties) = preSolution
46 | HideSolutionNode = FALSE
47 | EndGlobalSection
48 | EndGlobal
49 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace SPIDIdentificationStreaming_WPF_Samples
35 | {
36 | using System.Windows;
37 | using SampleUserControlLibrary;
38 |
39 | ///
40 | /// Interaction logic for MainWindow.xaml
41 | ///
42 | public partial class MainWindow : Window
43 | {
44 | ///
45 | /// Initializes a new instance of the MainWindow class.
46 | ///
47 | public MainWindow()
48 | {
49 | this.InitializeComponent();
50 |
51 | this._scenariosControl.SampleTitle = "Speaker Streaming Sample";
52 | this._scenariosControl.SampleScenarioList = new Scenario[]
53 | {
54 | new Scenario{ Title = "Enroll Speakers", PageClass = typeof(EnrollSpeakersPage) },
55 | new Scenario{ Title = "Stream File", PageClass = typeof(StreamPage) },
56 | };
57 |
58 | this._scenariosControl.Disclaimer = string.Empty;
59 | this._scenariosControl.ClearLog();
60 | }
61 |
62 | ///
63 | /// Gets the sample scenario control
64 | ///
65 | public SampleScenarios ScenarioControl
66 | {
67 | get
68 | {
69 | return this._scenariosControl;
70 | }
71 | }
72 |
73 | ///
74 | /// Writes a message in the status area
75 | ///
76 | /// The message to log
77 | public void Log(string message)
78 | {
79 | this._scenariosControl.Log(message);
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Client/ClientFactory.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace Microsoft.Cognitive.SpeakerRecognition.Streaming.Client
35 | {
36 | using System;
37 | using Microsoft.Cognitive.SpeakerRecognition.Streaming.Audio;
38 | using Microsoft.Cognitive.SpeakerRecognition.Streaming.Result;
39 | using Microsoft.ProjectOxford.SpeakerRecognition;
40 | using Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification;
41 |
42 | ///
43 | /// Identification-Streaming Client Factory
44 | /// Used in creating a recognition client to be used in the streaming process
45 | ///
46 | public class ClientFactory
47 | {
48 | ///
49 | /// Creates new identification-streaming recognition client
50 | ///
51 | /// ID associated with all requests related to this client
52 | /// Speaker ids for recognition
53 | /// Frequency of sending requests to the server in seconds.
54 | /// If set to 1, the client will send a request to the server for every second received from the user
55 | /// Number of seconds sent per request
56 | /// Audio format
57 | /// Value callback action consisted of identification result, client ID and request ID
58 | /// Client used in identifying the streamed audio file
59 | /// Identification-Streaming and recognition client
60 | public RecognitionClient CreateRecognitionClient(Guid clientId, Guid[] speakerIds, int stepSize, int windowSize, AudioFormat audioFormat, Action resultCallBack, SpeakerIdentificationServiceClient serviceClient)
61 | {
62 | if (speakerIds.Length < 1)
63 | {
64 | throw new ArgumentException("Speakers count can't be smaller than 1.");
65 | }
66 |
67 | var recognitionClient = new RecognitionClient(clientId, speakerIds, stepSize, windowSize, audioFormat, resultCallBack, serviceClient);
68 | return recognitionClient;
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/EnrollSpeakersPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | Enroll Speakers
29 |
30 | Step 1: Create New Profiles
31 | Please click [Add] to add new profiles
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 | Step 2: Enroll Profile
43 | * Select a profile from the list on the left to enroll it.
44 | * Click [Load File] to specify a file to enroll with.
45 |
48 | Click [Enroll] to perform the enrollment.
49 |
52 | Or, click [Enroll Short Audio] to skip the enrollment duration requirement.
53 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using SampleUserControlLibrary;
35 | using System.Windows;
36 |
37 | namespace SPIDVerificationAPI_WPF_Sample
38 | {
39 | ///
40 | /// Interaction logic for MainWindow.xaml
41 | ///
42 | public partial class MainWindow : Window
43 | {
44 | ///
45 | /// The filename that holds the speakerId
46 | ///
47 | public static readonly string SPEAKER_FILENAME = "SpeakerId";
48 | ///
49 | /// The name of the file that holds the speaker phrase
50 | ///
51 | public static readonly string SPEAKER_PHRASE_FILENAME = "SpeakerPhrase";
52 | ///
53 | /// The name of the file that holds the number of remaining enrollments
54 | ///
55 | public static readonly string SPEAKER_ENROLLMENTS = "Enrollments";
56 | ///
57 | /// The name of the file that holds the speaker's enrollment status
58 | ///
59 | public static readonly string SPEAKER_ENROLLMENT_STATUS = "EnrollmentStatus";
60 | ///
61 | /// Returns the subscription key of the Oxford API
62 | ///
63 | public string SubscriptionKey
64 | {
65 | get
66 | {
67 | return _scenariosControl.SubscriptionKey;
68 | }
69 | }
70 | ///
71 | /// Add user scenarios in the main window
72 | ///
73 | public MainWindow()
74 | {
75 | InitializeComponent();
76 | _scenariosControl.SampleTitle = "Speaker Verification Sample";
77 | _scenariosControl.Disclaimer = string.Empty;
78 | _scenariosControl.SampleScenarioList = new Scenario[]
79 | {
80 | new Scenario { Title = "Scenario 1: Make a new Enrollment", PageClass=typeof(EnrollPage)},
81 | new Scenario { Title = "Scenario 2: Verify a Speaker", PageClass=typeof(VerifySpeakerPage)}
82 | };
83 | }
84 | ///
85 | /// Logs a given message to the status bar
86 | ///
87 | /// The message to be logged
88 | public void Log(string s)
89 | {
90 | _scenariosControl.Log(s);
91 | }
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Audio/AudioContainer.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace Microsoft.Cognitive.SpeakerRecognition.Streaming.Audio
35 | {
36 | using System;
37 | using System.Collections.Generic;
38 | using System.Linq;
39 | using System.Text;
40 | using System.Threading.Tasks;
41 |
42 | ///
43 | /// Types of audio containers
44 | ///
45 | public enum AudioContainerType
46 | {
47 | ///
48 | /// Audio with no header
49 | ///
50 | RAW,
51 |
52 | ///
53 | /// WAV audio
54 | ///
55 | WAV
56 | }
57 |
58 | ///
59 | /// Audio container which supports two types of containers: RAW and WAV
60 | ///
61 | public class AudioContainer
62 | {
63 | private int maxHeaderSize;
64 |
65 | ///
66 | /// Initializes a new instance of the AudioContainer class.
67 | ///
68 | /// Audio container type
69 | public AudioContainer(AudioContainerType type)
70 | {
71 | this.ContainerType = type;
72 |
73 | if (type.Equals(AudioContainerType.WAV))
74 | {
75 | this.maxHeaderSize = 5000;
76 | }
77 | else if (type.Equals(AudioContainerType.RAW))
78 | {
79 | this.maxHeaderSize = 0;
80 | }
81 | }
82 |
83 | ///
84 | /// Gets or sets audio container type
85 | ///
86 | public AudioContainerType ContainerType
87 | {
88 | get;
89 | set;
90 | }
91 |
92 | internal int MaxHeaderSize
93 | {
94 | get
95 | {
96 | return this.maxHeaderSize;
97 | }
98 | }
99 |
100 | public override bool Equals(object obj)
101 | {
102 | AudioContainer container = obj as AudioContainer;
103 | if (this.ContainerType.Equals(container.ContainerType))
104 | {
105 | return true;
106 | }
107 |
108 | return false;
109 | }
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/IdentifyFilePage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | Identify File
27 |
28 | Step 1: Select Test File
29 | Please click [Load File] to identify the speaker.
30 |
33 | Step 2: Perform Identification
34 | Select some profiles from the list on the left to identify from.
35 | Click [Identify] to perform the identification.
36 |
39 | Or, click [Identify Short Audio] to skip the identification duration requirement.
40 |
43 |
44 |
45 | Identified speaker:
46 |
47 |
48 |
49 | Confidence:
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/EnrollSpeakersPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | Enroll Speakers
29 |
30 | Step 1: Create New Profiles
31 | Please click [Add] to add new profiles
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 | Step 2: Enroll Profile
43 | Select a profile from the list on the left to enroll it.
44 | Click [Load File] to specify a file to enroll with.
45 |
48 | Click [Enroll] to perform the enrollment.
49 |
52 | Or, click [Enroll Short Audio] to skip the enrollment duration requirement.
53 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System.Reflection;
35 | using System.Resources;
36 | using System.Runtime.CompilerServices;
37 | using System.Runtime.InteropServices;
38 | using System.Windows;
39 |
40 | // General Information about an assembly is controlled through the following
41 | // set of attributes. Change these attribute values to modify the information
42 | // associated with an assembly.
43 | [assembly: AssemblyTitle("SPID_WPF_Sample")]
44 | [assembly: AssemblyDescription("")]
45 | [assembly: AssemblyConfiguration("")]
46 | [assembly: AssemblyCompany("")]
47 | [assembly: AssemblyProduct("SPID_WPF_Sample")]
48 | [assembly: AssemblyCopyright("Copyright \u00A9 2015")]
49 | [assembly: AssemblyTrademark("")]
50 | [assembly: AssemblyCulture("")]
51 |
52 | // Setting ComVisible to false makes the types in this assembly not visible
53 | // to COM components. If you need to access a type in this assembly from
54 | // COM, set the ComVisible attribute to true on that type.
55 | [assembly: ComVisible(false)]
56 |
57 | //In order to begin building localizable applications, set
58 | //CultureYouAreCodingWith in your .csproj file
59 | //inside a . For example, if you are using US english
60 | //in your source files, set the to en-US. Then uncomment
61 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
62 | //the line below to match the UICulture setting in the project file.
63 |
64 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
65 |
66 |
67 | [assembly: ThemeInfo(
68 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
69 | //(used if a resource is not found in the page,
70 | // or application resource dictionaries)
71 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
72 | //(used if a resource is not found in the page,
73 | // app, or any theme specific resource dictionaries)
74 | )]
75 |
76 |
77 | // Version information for an assembly consists of the following four values:
78 | //
79 | // Major Version
80 | // Minor Version
81 | // Build Number
82 | // Revision
83 | //
84 | // You can specify all the values or you can default the Build and Revision Numbers
85 | // by using the '*' as shown below:
86 | // [assembly: AssemblyVersion("1.0.*")]
87 | [assembly: AssemblyVersion("1.0.0.0")]
88 | [assembly: AssemblyFileVersion("1.0.0.0")]
89 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System.Reflection;
35 | using System.Resources;
36 | using System.Runtime.CompilerServices;
37 | using System.Runtime.InteropServices;
38 | using System.Windows;
39 |
40 | // General Information about an assembly is controlled through the following
41 | // set of attributes. Change these attribute values to modify the information
42 | // associated with an assembly.
43 | [assembly: AssemblyTitle("SPIDAPI-WPF-Samples")]
44 | [assembly: AssemblyDescription("")]
45 | [assembly: AssemblyConfiguration("")]
46 | [assembly: AssemblyCompany("")]
47 | [assembly: AssemblyProduct("SPIDAPI-WPF-Samples")]
48 | [assembly: AssemblyCopyright("Copyright \u00A9 2015")]
49 | [assembly: AssemblyTrademark("")]
50 | [assembly: AssemblyCulture("")]
51 |
52 | // Setting ComVisible to false makes the types in this assembly not visible
53 | // to COM components. If you need to access a type in this assembly from
54 | // COM, set the ComVisible attribute to true on that type.
55 | [assembly: ComVisible(false)]
56 |
57 | //In order to begin building localizable applications, set
58 | //CultureYouAreCodingWith in your .csproj file
59 | //inside a . For example, if you are using US english
60 | //in your source files, set the to en-US. Then uncomment
61 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
62 | //the line below to match the UICulture setting in the project file.
63 |
64 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
65 |
66 |
67 | [assembly: ThemeInfo(
68 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
69 | //(used if a resource is not found in the page,
70 | // or application resource dictionaries)
71 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
72 | //(used if a resource is not found in the page,
73 | // app, or any theme specific resource dictionaries)
74 | )]
75 |
76 |
77 | // Version information for an assembly consists of the following four values:
78 | //
79 | // Major Version
80 | // Minor Version
81 | // Build Number
82 | // Revision
83 | //
84 | // You can specify all the values or you can default the Build and Revision Numbers
85 | // by using the '*' as shown below:
86 | // [assembly: AssemblyVersion("1.0.*")]
87 | [assembly: AssemblyVersion("1.0.0.0")]
88 | [assembly: AssemblyFileVersion("1.0.0.0")]
89 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | using System.Reflection;
35 | using System.Resources;
36 | using System.Runtime.CompilerServices;
37 | using System.Runtime.InteropServices;
38 | using System.Windows;
39 |
40 | // General Information about an assembly is controlled through the following
41 | // set of attributes. Change these attribute values to modify the information
42 | // associated with an assembly.
43 | [assembly: AssemblyTitle("SPIDAPI-WPF-Samples")]
44 | [assembly: AssemblyDescription("")]
45 | [assembly: AssemblyConfiguration("")]
46 | [assembly: AssemblyCompany("")]
47 | [assembly: AssemblyProduct("SPIDAPI-WPF-Samples")]
48 | [assembly: AssemblyCopyright("Copyright \u00A9 2015")]
49 | [assembly: AssemblyTrademark("")]
50 | [assembly: AssemblyCulture("")]
51 |
52 | // Setting ComVisible to false makes the types in this assembly not visible
53 | // to COM components. If you need to access a type in this assembly from
54 | // COM, set the ComVisible attribute to true on that type.
55 | [assembly: ComVisible(false)]
56 |
57 | // In order to begin building localizable applications, set
58 | // CultureYouAreCodingWith in your .csproj file
59 | // inside a . For example, if you are using US english
60 | // in your source files, set the to en-US. Then uncomment
61 | // the NeutralResourceLanguage attribute below. Update the "en-US" in
62 | // the line below to match the UICulture setting in the project file.
63 | // [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
64 |
65 | [assembly: ThemeInfo(
66 | ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located
67 | // (used if a resource is not found in the page,
68 | // or application resource dictionaries)
69 | ResourceDictionaryLocation.SourceAssembly // where the generic resource dictionary is located
70 | // (used if a resource is not found in the page,
71 | // app, or any theme specific resource dictionaries)
72 | )]
73 |
74 | // Version information for an assembly consists of the following four values:
75 | //
76 | // Major Version
77 | // Minor Version
78 | // Build Number
79 | // Revision
80 | //
81 | // You can specify all the values or you can default the Build and Revision Numbers
82 | // by using the '*' as shown below:
83 | // [assembly: AssemblyVersion("1.0.*")]
84 | [assembly: AssemblyVersion("1.0.0.0")]
85 | [assembly: AssemblyFileVersion("1.0.0.0")]
86 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/IsolatedStorageHelper.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | // Licensed under the MIT license.
4 | //
5 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
6 | //
7 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
8 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
9 | //
10 | // Copyright (c) Microsoft Corporation
11 | // All rights reserved.
12 | //
13 | // MIT License:
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System.IO;
35 | using System.IO.IsolatedStorage;
36 |
37 | namespace SPIDVerificationAPI_WPF_Sample
38 | {
39 | ///
40 | /// A storage helper that's used to persist values to files to be used across pages
41 | ///
42 | internal class IsolatedStorageHelper
43 | {
44 | private static IsolatedStorageHelper s_helper;
45 |
46 | private IsolatedStorageHelper()
47 | {
48 | }
49 | ///
50 | /// Creates an Instance of the storage helper
51 | ///
52 | ///
53 | public static IsolatedStorageHelper getInstance()
54 | {
55 | if (s_helper == null)
56 | s_helper = new IsolatedStorageHelper();
57 | return s_helper;
58 | }
59 | ///
60 | /// Reads a value from a given file
61 | ///
62 | /// The file to read the value from
63 | /// String representation of the value
64 | public string readValue(string filename)
65 | {
66 | using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null))
67 | {
68 | try
69 | {
70 | using (var iStream = new IsolatedStorageFileStream(filename, FileMode.Open, isoStore))
71 | {
72 | using (var reader = new StreamReader(iStream))
73 | {
74 | return reader.ReadLine();
75 | }
76 | }
77 | }
78 | catch (FileNotFoundException)
79 | {
80 | return null;
81 | }
82 | }
83 | }
84 | ///
85 | /// Writes a value to a given file
86 | ///
87 | /// The file to write the value to
88 | /// The value to be written
89 | public void writeValue(string fileName, string value)
90 | {
91 | using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null))
92 | {
93 | using (var oStream = new IsolatedStorageFileStream(fileName, FileMode.Create, isoStore))
94 | {
95 | using (var writer = new StreamWriter(oStream))
96 | {
97 | writer.WriteLine(value);
98 | }
99 | }
100 | }
101 | }
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/Streaming/Microsoft.Cognitive.SpeakerRecognition.Streaming/Result/RecognitionResult.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft. All rights reserved.
3 | //
4 | // Licensed under the MIT license.
5 | //
6 | // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services
7 | //
8 | // Microsoft Cognitive Services (formerly Project Oxford) GitHub:
9 | // https://github.com/Microsoft/Cognitive-SpeakerRecognition-Windows
10 | //
11 | // Copyright (c) Microsoft Corporation
12 | // All rights reserved.
13 | //
14 | // MIT License:
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 |
34 | namespace Microsoft.Cognitive.SpeakerRecognition.Streaming.Result
35 | {
36 | using System;
37 | using System.Collections.Generic;
38 | using System.Linq;
39 | using System.Text;
40 | using System.Threading.Tasks;
41 | using Microsoft.ProjectOxford.SpeakerRecognition;
42 | using Microsoft.ProjectOxford.SpeakerRecognition.Contract.Identification;
43 |
44 | ///
45 | /// Recognition result which includes the ID of the client initiated the request, the ID of the request and the identification result for the request
46 | ///
47 | public class RecognitionResult
48 | {
49 | ///
50 | /// Initializes a new instance of the RecognitionResult class incase of a successful recognition
51 | ///
52 | /// Operation result
53 | /// Client ID
54 | /// Request ID
55 | public RecognitionResult(Identification result, Guid clientId, int requestId)
56 | {
57 | this.Value = result;
58 | this.ClientId = clientId;
59 | this.RequestId = requestId;
60 |
61 | this.Succeeded = true;
62 | }
63 |
64 | ///
65 | /// Initializes a new instance of the RecognitionResult class incase of a failed recognition
66 | ///
67 | /// Flag that Indicates whether the request has succeeded or not
68 | /// Failure message in case of a failure
69 | /// Request ID
70 | public RecognitionResult(bool status, string failureMsg, int requestId)
71 | {
72 | this.Succeeded = status;
73 | this.FailureMsg = failureMsg;
74 | this.RequestId = requestId;
75 | }
76 |
77 | ///
78 | /// Operation result
79 | ///
80 | public Identification Value
81 | {
82 | get; set;
83 | }
84 |
85 | ///
86 | /// Client ID
87 | ///
88 | public Guid ClientId
89 | {
90 | get; set;
91 | }
92 |
93 | ///
94 | /// Request ID which gets incremented with each request
95 | ///
96 | public int RequestId
97 | {
98 | get; set;
99 | }
100 |
101 | ///
102 | /// Flag that Indicates whether the request has succeeded or not
103 | ///
104 | public bool Succeeded
105 | {
106 | get; set;
107 | }
108 |
109 | ///
110 | /// Gets and Sets failure message in case of a failure
111 | ///
112 | public string FailureMsg
113 | {
114 | get; set;
115 | }
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Microsoft Speaker Recognition API: Windows Client Library & Sample
2 | This repo contains the Windows client library & sample for the Microsoft Speaker Recognition API, an offering within [Microsoft Cognitive Services](https://www.microsoft.com/cognitive-services), formerly known as Project Oxford.
3 | * [Learn about the Speaker Recognition API](https://www.microsoft.com/cognitive-services/en-us/speaker-recognition-api)
4 | * [Read the documentation](https://www.microsoft.com/cognitive-services/en-us/speaker-recognition-api/documentation)
5 | * [Find more SDKs & Samples](https://www.microsoft.com/cognitive-services/en-us/SDK-Sample?api=speaker%20recognition)
6 |
7 |
8 | ## The sample
9 | The sample includes three applications:
10 | 1. two Windows WPF applications to demonstrate the use of identification and verification features of Speaker Recognition API for single-speaker short audios.
11 | 2. a Windows WPF application to demonstrate an approach to use identification on potentially longer audios that contain multiple speakers by streaming a few seconds at a time.
12 |
13 | ### Build the sample
14 | 1. Starting in the folder where you clone the repository (this folder)
15 | 2. In a git command line tool, type `git submodule init` (or do this through a UI)
16 | 3. Pull in the shared Windows code by calling `git submodule update`
17 | 4. Start Microsoft Visual Studio 2015 and select `File > Open > Project/Solution`.
18 | 5. For speaker identification, starting in the folder where you clone the repository, go to
19 | `SpeakerRecognition > Windows > Identification` folder.
20 | For speaker verification, starting in the folder where you clone the repository, go to
21 | `SpeakerRecognition > Windows > Verification` folder.
22 | For speaker steaming, starting in the folder where you clone the repository, go to
23 | `SpeakerRecognition > Windows > Streaming` folder.
24 | 6. Double-click the Visual Studio 2015 Solution (.sln) file.
25 | 7. Press Ctrl+Shift+B, or select `Build > Build Solution`.
26 |
27 | ### Run the sample
28 | After the build is complete, press F5 to run the sample.
29 |
30 | First, you must obtain a Speaker Recognition API subscription key by [following the instructions on our website]().
31 |
32 | Locate the text edit box saying "Paste your subscription key here to start". Paste your subscription key. You can choose to persist your subscription key in your machine by clicking the "Save Key" button. When you want to delete the subscription key from the
33 | machine, click "Delete Key" to remove it from your machine.
34 |
35 | Click on "Select Scenario" to use samples of different scenarios, and
36 | follow the instructions on screen.
37 |
38 | ### Streaming Audio File
39 | 1. Start with the "Enroll Speakers" scenario to prepare the speakers you will identify against.
40 | 2. In the "Stream File" scenario, Press "Load File" button and load your audio file.
41 | 3. Select the profiles you want to use as candidate speakers.
42 | 4. Control the number of seconds used with each identification request by tuning the "window size".
43 | 5. Control the number of seconds between each identification request through tuning the "step size".
44 | 6. Press "Stream" button and monitor the results of the streaming process.
45 |
46 | Note:
47 | Make sure that the number of requests per minute resulting from tunning the step size won't exceed your subscription's rate limit.
48 | For example, applying a step size of 1 on an audio file of size 1 minute will result in 60 requests. Applying a step size of 2 on the same audio file will result in 30 requests.
49 | For your convenience, we have provided sample audios to enroll 2 speakers and a sample audio for streaming. These audios are found under `SpeakerRecognition\Windows\Streaming\SPIDStreamingAPI-WPF-Samples\SampleAudios`.
50 |
51 |
52 |
53 | ## Contributing
54 | We welcome contributions. Feel free to file issues and pull requests on the repo and we'll address them as we can. Learn more about how you can help on our [Contribution Rules & Guidelines]().
55 |
56 | You can reach out to us anytime with questions and suggestions using our communities below:
57 | - **Support questions:** [StackOverflow]()
58 | - **Feedback & feature requests:** [Cognitive Services UserVoice Forum]()
59 |
60 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
61 |
62 |
63 | ## License
64 | All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see
65 | [LICENSE]().
66 |
67 | Sample images are licensed separately, please refer to [LICENSE-IMAGE]().
68 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/StreamPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | Identify File
30 |
31 | Step 1: Select Test File
32 | Please click [Load File] to identify the speaker.
33 |
34 | Step 2: Perform Identification
35 | To understand the impact of window size and step size on the number of requests issued, please refer to "Streaming Audio File" sub-section in the Readme.md.
36 | * Select some profiles from the list on the left to identify from.
37 | * Enter the window size.
38 |
39 | * Enter the step size.
40 |
41 |
42 | Click [Stream] to perform the Streaming.
43 |
44 |
45 |
46 |
47 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | Volume
57 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | Identified speaker:
67 |
68 |
69 |
70 | Confidence:
71 |
72 |
73 |
74 | Request Id:
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | *.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.pfx
193 | *.publishsettings
194 | node_modules/
195 | orleans.codegen.cs
196 |
197 | # Since there are multiple workflows, uncomment next line to ignore bower_components
198 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
199 | #bower_components/
200 |
201 | # RIA/Silverlight projects
202 | Generated_Code/
203 |
204 | # Backup & report files from converting an old project file
205 | # to a newer Visual Studio version. Backup files are not needed,
206 | # because we have git ;-)
207 | _UpgradeReport_Files/
208 | Backup*/
209 | UpgradeLog*.XML
210 | UpgradeLog*.htm
211 |
212 | # SQL Server files
213 | *.mdf
214 | *.ldf
215 |
216 | # Business Intelligence projects
217 | *.rdl.data
218 | *.bim.layout
219 | *.bim_*.settings
220 |
221 | # Microsoft Fakes
222 | FakesAssemblies/
223 |
224 | # GhostDoc plugin setting file
225 | *.GhostDoc.xml
226 |
227 | # Node.js Tools for Visual Studio
228 | .ntvs_analysis.dat
229 |
230 | # Visual Studio 6 build log
231 | *.plg
232 |
233 | # Visual Studio 6 workspace options file
234 | *.opt
235 |
236 | # Visual Studio LightSwitch build output
237 | **/*.HTMLClient/GeneratedArtifacts
238 | **/*.DesktopClient/GeneratedArtifacts
239 | **/*.DesktopClient/ModelManifest.xml
240 | **/*.Server/GeneratedArtifacts
241 | **/*.Server/ModelManifest.xml
242 | _Pvt_Extensions
243 |
244 | # Paket dependency manager
245 | .paket/paket.exe
246 | paket-files/
247 |
248 | # FAKE - F# Make
249 | .fake/
250 |
251 | # JetBrains Rider
252 | .idea/
253 | *.sln.iml
254 |
--------------------------------------------------------------------------------
/Streaming/SPIDStreamingAPI-WPF-Samples/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Verification/SPIDVerificationAPI_WPF_Sample/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Identification/SPIDIdentificationAPI-WPF-Samples/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------