Closed PotatoSpudowski closed 5 years ago
Update: Its working. Should be identify_file('702227e**', 'ironman/fan.wav', 'True', profile_ID) where profile_ID is an array consisting of all the profile ids enrolled.
Could you please tell more about the details? I ran it in the Windows command line, and the same error occurred. What do you mean with "where profile_ID is an ARRAY consisting of all the profile ids enrolled"? Should I include it in a LIST?
Let's say your profile ID is "MYPROFILEID" then you should pass it as identify_file('Subscription key', 'Link to audio file', 'Force short audio option', ["MYPROFILEID"])
No idea why I raised this issue back then. Seems fairly straight forward now that I think about it. I was terrible at software development back then. Safe to say not much has changed :)
When I try to run Identifyfile i get this error. When I try to run the code on an enrolled profile I get the above error.
Here is the code I used import IdentificationServiceHttpClientHelper import sys
def identify_file(subscription_key, file_path, force_short_audio, profile_ids): """Identify an audio file on the server.
if name == "main":
if len(sys.argv) < 5: