Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

[WAAPI] Can i get Language list?

+1 vote
Hi,

I'm trying to make little program for automate importing tsv files via the waapi with Python.
I want to make a argument selectable during importing.
It is an ak.wwise.core.audio.importTabDelimited's argument which is 'importLanguage'.

Of course, I could provide as string that I manually type, such as 'English(US)', 'Korean',
but can I get the language list of the project where I wanna import? I mean the list of language we could check in Language Manager.

If i can, is there waapi API reference function for get the language list?
Or, is there a setting file that i could parse?

Thank you.
asked May 8, 2020 in General Discussion by MMyyoo (200 points)

1 Answer

+2 votes
 
Best answer

 

You query the language list, however, you will need to filter out "Mixed", "SFX", "External", "SoundSeed Grain".

from waapi import WaapiClient
import pprint

# Connect (default URL)
client = WaapiClient()

# Return all targets
args = {
    "from": {
        "ofType": [
            "Language"
        ]
    }
}

options = {
    "return": ['name', 'id']
}
result = client.call("ak.wwise.core.object.get", args, options=options)
pprint.pprint(result)


# Disconnect
client.disconnect()

answered May 12, 2020 by Bernard R. (Audiokinetic) (35,090 points)
selected Oct 9, 2022 by MMyyoo
Thank you for the answer.

Anyway, I found other way, that is parsing the wproj file as xml.
but I will use waapi like your answer! it would be better.
thank you agian!
...