arrow_right Table of Contents

Other Documentation

Wwise SDK 2021.1.9
Python (low-level) - HTTP

Initializing the project

Note: This example requires Python pip to be installed.

Run the following command from any directory to install dependencies:

pip install requests

Project Code

Locate the sample file <Wwise installation path>/SDK/samples/WwiseAuthoringAPI/python/low-level/hello-wwise-wamp/

This file contains the following code, which allows you to connect to the Wwise Authoring API.

import sys
import os
import requests
import json
import codecs
sys.path.append(os.path.join(os.path.dirname(__file__), '../../../../../include/AK/WwiseAuthoringAPI/py'))
from waapi_uri import WAAPI_URI
payload = {
'uri': WAAPI_URI.ak_wwise_core_getinfo,
'options': {},
'args': {}
r ="http://localhost:8090/waapi", data=json.dumps(payload))
print(r.status_code, r.reason)
print(r.text.encode('utf8', 'replace'))
print("Unable to connect to Waapi: Is Wwise running and Wwise Authoring API enabled?")

Note: The line from waapi_uri import WAAPI_URI imports a declaration of the API paths.

It is located in <Wwise installation path>/SDK/include/AK/WwiseAuthoringAPI/py. The location of this file was added to Python's path dynamically by extending sys.path in this sample.

Running the project

Run the sample file from its directory using the following command:


If the Wwise Authoring API successfully connects to Wwise, you should see the following output:

(200, 'OK')
"copyright":"Š 2006-2020. Audiokinetic Inc. All rights reserved.",
"log":"C:\\Program Files (x86)\\Audiokinetic\\Wwise 20??.?.?\\Authoring\\x64\\Release\\bin\\Logs\\",
"install":"C:\\Program Files (x86)\\Audiokinetic\\Wwise 20??.?.?\\",
"help":"C:\\Program Files (x86)\\Audiokinetic\\Wwise 20??.?.?\\Authoring\\Help\\",
"authoring":"C:\\Program Files (x86)\\Audiokinetic\\Wwise 20??.?.?\\Authoring\\",
"bin":"C:\\Program Files (x86)\\Audiokinetic\\Wwise 20??.?.?\\Authoring\\x64\\Release\\bin\\"
Note: The information retrieved from Wwise will vary based on your installation.