Rootpath not settable

i have noticed a issue that the audio does not always set when the encoding is ‘exotic’ (UE wav export). It is not able to set the root dir, and thus not the track. i have checked the audio specs and i had a different encoding on 1 file, when i add another file in there alphabetically first, it works, here is my API call:

urllib3.connectionpool : Starting new HTTP connection (1): localhost:8011
urllib3.connectionpool : http://localhost:8011/ "GET /status HTTP/1.1" 200 4

Server Status: OK {'file_name': '.../male_mh_1to1_solved.usd'}

urllib3.connectionpool : Starting new HTTP connection (1): localhost:8011
urllib3.connectionpool : http://localhost:8011/ "POST /A2F/USD/Load HTTP/1.1" 200 37

{'a2f_player': '/World/audio2face/Player', 'dir_path': .../seq'}

urllib3.connectionpool : Starting new HTTP connection (1): localhost:8011
urllib3.connectionpool : http://localhost:8011/ "POST /A2F/Player/SetRootPath HTTP/1.1" **500** 21

{'a2f_player': '/World/audio2face/Player', 'file_name': 'Edt_030_Int_ServiceTunnel_Duwack.wav'}

urllib3.connectionpool : Starting new HTTP connection (1): localhost:8011
urllib3.connectionpool : http://localhost:8011/ "POST /A2F/Player/SetTrack HTTP/1.1" 200 77

{'a2f_player': '/World/audio2face/Player'}

urllib3.connectionpool : Starting new HTTP connection (1): localhost:8011
urllib3.connectionpool : http://localhost:8011/ "POST /A2F/Player/GetCurrentTrack HTTP/1.1" 200 84

{'status': 'OK', 'result': 'chinese_voice_female_p01_neutral.wav', 'message': 'Suceeded'}

i can confirm switching manually in A2F that the menu does not want to switch to the folder containing 3 clips when the exotic is first. when i remove the exotic file or add a new first track it works as expected, but it is not able to select the exotic file. when the error exists the server states: ValueError: WAV header is invalid:
nAvgBytesPerSec must equal product of nSamplesPerSec and nBlockAlign, but file has nSamplesPerSec = 48000, nBlockAlign = 2, and nAvgBytesPerSec = 192000 so i guess you are checking the first file in the folder and not every one…

audio specs: Input #0, wav, from ‘…\seq\Edt_030_Int_ServiceTunnel.wav’: Duration: 00:00:58.42, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s [STREAM] index=0 codec_name=pcm_s16le codec_long_name=PCM signed 16-bit little-endian profile=unknown codec_type=audio codec_time_base=1/48000 codec_tag_string=[1][0][0][0] codec_tag=0x0001 sample_fmt=s16 sample_rate=48000 channels=2 channel_layout=unknown bits_per_sample=16 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=N/A start_time=N/A duration_ts=2804000 duration=58.416667 bit_rate=1536000 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 [/STREAM] [FORMAT] filename=…\seq\Edt_030_Int_ServiceTunnel.wav nb_streams=1 nb_programs=0 format_name=wav format_long_name=WAV / WAVE (Waveform Audio) start_time=N/A duration=58.416667 size=11216044 bit_rate=1536006 probe_score=99 [/FORMAT]

I met a similar issue, during SetTrack, it seems a2f disagree with some sample rates, got this error when SetTrack to a sample rate 16000 wav file:
sounddevice.PortAudioError: Error opening OutputStream: Invalid sample rate [PaErrorCode -9997]

Thanks for bringing this to our attention. Unfortunately, at the moment Audio2Face does not support all encodings. We will discuss this internally to come up with a solution.

Screenshot_12