menu
 

Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+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.
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()

by Bernard R. (Audiokinetic) (35.8k points)
selected 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!
...