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

I wrote a script which should allow me to create new audio files under an object. Unfortunately I can't get the file from my local drive. I wrote two scripts one in Python and one in NodeJS none of them seem to work.

Here is my code

function importSound(session){
  var newImport = {
    importOperation: "createNew",
    default: {
      importLanguage: "SFX"
    },
    imports: [
      {
        objectPath: "{6A59D4C5-5927-4C64-82AF-4A0CBFBD4C05}",
        audioFile: 'Y:\\Game\\Audio\\WWise\\Game\\Originals\\intros\\intro1.wav'
      },
      {
        objectPath: "{6A59D4C5-5927-4C64-82AF-4A0CBFBD4C05}",
        audioFile: 'Y:\\Game\\Audio\\WWise\\Game\\Originals\\intros\\intro2.wav'
      }
    ]
  }

  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();
    }
  );
}

 

I get the following error

{
  importOperation: 'createNew',
  default: { importLanguage: 'SFX' },
  imports: [
    {
      objectPath: '{6A59D4C5-5927-4C64-82AF-4A0CBFBD4C05}',
      audioFile: 'Y:\\Game\\Audio\\WWise\\Game\\Originals\\intros\\intro1.wav'
    },
    {
      objectPath: '{6A59D4C5-5927-4C64-82AF-4A0CBFBD4C05}',
      audioFile: 'Y:\\Game\\Audio\\WWise\\Game\\Originals\\intros\\intro2.wav'
    }
  ]
}
error:  Error {
  error: 'ak.wwise.invalid_procedure_uri',
  args: [],
  kwargs: {
    message: 'The procedure URI is unknown.',
    details: { procedureUri: 'ak.wwise.core.object.import' }
  }
}

Location of files on drive

 

I also wrote the same script in python but I  get the same error. What is the correct way to reference images on a mac drive? I read the documentation but following that just leads to this error.

 

Here is what the documentation explains

WAAPI uses Windows-style paths to access files, with the root folder "/" represented by drive Z and the home folder drive Y. For example, in order to load project "/Volumes/path/to/MyProject.wproj", you must use path "Z:\Volumes\path\to\MyProject.wproj".

In case of doubt, you can refer to the project path as displayed in the recent projects in Wwise.

My project is located in Y:\\Game\\Audio\\WWise\\Game\\

Also, I'm on a macbook Silicon if that has any implications.

Any help will be greatly appreciated!

in General Discussion by Ando (190 points)

1 Answer

0 votes

The error "The procedure URI is unknown." indicates the URI (the first argument to the client's call function) isn't a defined function. Indeed, "ak.wwise.core.object.import" is not a defined function, you instead meant "ak.wwise.core.audio.import".

https://www.audiokinetic.com/library/edge/?source=SDK&id=ak_wwise_core_audio_import.html

by Samuel L. (Audiokinetic) (23.6k points)
Thanks for pointing that out. Rookie mistake.
...