Last active
December 17, 2020 15:53
-
-
Save AddictedCS/eef98da8b076347f931f2cf03156f399 to your computer and use it in GitHub Desktop.
Query Emy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use FFmpegAudioService | |
var audioService = new FFmpegAudioService(); | |
// query file | |
string queryAudioFile = "query.mp3"; | |
// connect to Emy on port 3399 | |
var emyModelService = EmyModelService.NewInstance("localhost", 3399); | |
// query Emy database | |
var queryResult = await QueryCommandBuilder.Instance.BuildQueryCommand() | |
.From(queryAudioFile) | |
.UsingServices(modelService, audioService) | |
.Query(); | |
// register matches such that they appear in the dashboard | |
emyModelService.RegisterMatches(queryResult.ResultEntries); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment