cognitive-services-speech-sdk: Embedded model fails to load from paths with non-ASCII characters

IN ORDER TO ASSIST YOU, PLEASE PROVIDE THE FOLLOWING:

  • Speech SDK log taken from a run that exhibits the reported issue.

log.txt

  • A stripped down, simplified version of your source code that exhibits the issue. Or, preferably, try to reproduce the problem with one of the public samples in this repository (or a minimally modified version of it), and share the code.
// the path below needs to exist on disk and needs to contain spaces and non-ASCII characters
auto speechConfig = EmbeddedSpeechConfig::FromPath("/Users/bpasero/Desktop/assets sind cööl/stt");

Describe the bug

The embedded speech model fails to load STT models when the path contains non-ASCII characters and spaces.

To Reproduce

Steps to reproduce the behavior:

// the path below needs to exist on disk and needs to contain spaces and non-ASCII characters
auto speechConfig = EmbeddedSpeechConfig::FromPath("/Users/bpasero/Desktop/assets sind cööl/stt");

Expected behavior

Models can load from paths with spaces and non-ASCII characters.

Version of the Cognitive Services Speech SDK

1.35.0

Platform, Operating System, and Programming Language

  • OS: macOS
  • Hardware: ARM
  • Programming language: C++

Additional context

Reported in https://github.com/microsoft/vscode/issues/206512

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Still an issue.

@bpasero It depends on what the working directory of the process that uses the Speech SDK is. The model path would need to be relative to this. If both the process working directory and the model location are under the user’s home directory then a relative path could work.