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.

0 votes

Hello, I'm trying to optimize my workflow by building a WAAPI nodejs app. Unfortunately Wwise throws an error when I try to call the import method with a path on a local hard drive.

 

Here is my code

function importSound(session){

  var path = "Y:\\Game\\Audio\\Wwise\\Game\\Originals\\intros\\"

  var newImport = {
    importOperation: "createNew",
    default: {
      importLanguage: "SFX"
    },
    imports: [
      {
        objectPath: "\\Actor-Mixer Hierarchy\\journey\\stages\\calibration",
        audioFile: path + 'intro1.wav',
        //"@Volume": 0.42
      },
      {
        objectPath: "\\Actor-Mixer Hierarchy\\journey\\stages\\calibration",
        audioFile: path + 'intro2.wav',
        //"@Volume": 0.1
      }
    ]
  }

  console.log(newImport)

  session.call('ak.wwise.core.object.import', [], newImport ).then(
    function(res) {
      console.log(res)
    },
    function (error) {
      console.log('error: ', error);
    }
  ).then(
    function() {
      connection.close();
    }
  );
}

The error that I get is the following

error:  Error {
  error: 'ak.wwise.invalid_procedure_uri',
  args: [],
  kwargs: {
    message: 'The procedure URI is unknown.',
    details: { procedureUri: 'ak.wwise.core.object.import' }
  }
}

 

I'm working on a mac (Silicon) using Wwise 2022.1.0 and the NodeJS library. I also tried writing the calls in Python but that didn't work either (I get the same error). I'm pretty sure that my files are located in the right folder. I checked multiple times based on the suggestion from the documentation.

Here is the location of my project -> (Y:\Game\Audio\Wwise\Game\Game.wproj).

This is the path to the file on my mac -> (Macintosh HD > Users > studio > Game > Audio > Wwise > Game > Originals > intros > intro1.wav)

And here is the path that I'm sending through WAAPI -> ("Y:\\Game\\Audio\\Wwise\\Game\\Originals\\intros\\intro1.wav")

I wonder what I'm missing here.

 

Thanks

 

in General Discussion by Ando (190 points)
closed by Samuel L. (Audiokinetic)

1 Answer

0 votes
I believe the error in this case has to do with the URI you are using (ak.wwise.core.object.import).

The correct URI would be : ak.wwise.core.audio.import

An easy mistake to make!
by Etienne R. (Audiokinetic) (1.1k points)
...