c# - Wrong culture when using System.Speech as administrator -



c# - Wrong culture when using System.Speech as administrator -

i working on french windows 7 pc. develop dialog application. speech synthesis based on system.speech.

when run application user account, works well. able select french voice , scheme speechs in french. when execute application administrator (by right-clicking on exe file), application speaks in english. in log messages, can see application cannot select french voice. looks "run administrator" using different civilization ...

[note need execute application administrator because wpf application embeds self-hosted wcf services)

how can solve problem?

[edit] tried add together next code app_startup event not alter anything

var civilization = new cultureinfo("fr-fr"); thread.currentthread.currentculture = culture; thread.currentthread.currentuiculture = culture;

[edit] when watch current thread civilization before speech synthesis initialiation, civilization french. not understand...

c# speech-synthesis

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -