C# audio directory issue - audio

Alright, I'm developing a speech recognition system which is working completely fine, I've had no problems with it up until now. And yes i did google search it and look to see if the question had already been answered, but nothing turned up.
What I did was save some text-to-speech lines and put them into the program, it worked fine up until about the 5th audio file, I ran it to try and test if it worked and the program crashed with this error:
NotSupportedException: The given path's format is not supported
which is weird because for every other audio file it worked, the code looks like this :
System.Media.SoundPlayer player8 = new System.Media.SoundPlayer(#"‪C:\Users\user\Desktop\JMAS LINE\15.wav");player8.Play();
It's strange because only specific ones work and don't work
Any help would be appreciated

Related

Trouble Decoding Encoded game cheat file

So i noticed someone was cheating in i game i play and i wanted the file to analyse how the cheats were written and how they work, i do not intend to use them!
I downloaded the zipped file in windows sandbox (as i want to be safe) and extracted it then opened it in vs code.
I got this message first
then when i continue the code looks like this
i am not very experienced so any help in how i can decode this or any errors i made would be appreciated thanks :)

Python - Can't reproduce console output in a file form

I'm very new to Python, with no previous experience in programming, so if my questions seem stupid, that's because they are.
I was trying to lean a bit more about the "requests" library, so I installed it and followed the instructions in this page (http://docs.python-requests.org/en/master/user/quickstart/). When I got to "Response Content", I tried to emulate the code by copying and pasting it, creating a file named pedidos.py, and running it on my terminal. But when I run it, nothing happens.
This is the code as I copied it:
import requests
r = requests.get('https://api.github.com/events')
r.text
The strangest thing is, if I open a python console in my terminal and input this code line by line, I get a output, which doesn't happen if run it through the file.
I'm fairly certain that the answer to my question is, probably, very simple, and that I will be ashamed to have asked it once someone explains it to me. But the truth is that I'm stuck and really need some help.
Thanks in advance to anyone who takes the time to answer.

Issue in pdf to text depending on PDF file's version

I'm actually working on ubuntu as I'm trying to parse pdf files to extract text from them, which I managed to get working (using tesseract for example), BUT as I get a 1.7 pdf file version, conversion doesn't work (I get a blank page in my 'name.txt' file).
So I was wondering if anyone knew about some magic that can solve my problem regarding this pdf version issue...
I looked pretty much everywhere I could on the web, without seeing similar issues, therefore I came to y'all.
Hope you'll find a way to help me, cause google hasn't been such a friend so far...

Matlab UI program works unproperly after deploytool

this is the first time I'm encountering this kind of issue.
I have a perfectly working code that runs without any issue under 3 different platforms (Win/Linux/OS X).
However after the deploytool compilation a part of it stops working. How can I get the error once the code is compiled!? It seems that it has some problems in loading and reading .mat files. Is that possible?
I hope someone can help me.
Thanks
edit:
I've solved the problem! Unfortunately was all addpath fault!
I have a lot of folders with files and functions that are needed for running the code, after the compilation matlab does a mess with all of that folders.
Good hint: do not use addpath for the compilation! Thank you anyway!
You can try to catch the error and write it to a text file. Or build in a check that prints text to the screen.
A bit more in general: You can try to isolate the part of the code that has the problem, and then basically cut out half of the functionality in this part repeatedly until you have exactly found the source of the error.

How to play audio on Corona?

I am trying to play audio as i used to do but it seems not working now. These are the codes I tried:
local birdSound = audio.loadSound("bird.mp3")
audio.play(birdSound)
It gives an error like that:
WARNING: Failed to create audio sound
Can you help me out? Thanks.
Don't use .mp3. .wav works for both iphone and android.
Make sure the .wav file is in our folder.
Sometimes some sound file can be played on computer, but not works in simulator. In that case, use other files instead.
If you really like that .mp3 file and can not find .wav, find some free software to convert it.
Changing the bit rate(increasing) of my files helped me to solve the problem. Thanks to SatheeshJM!

Resources