We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any extension that can do HTTP post requests?
#1
Hi there:

Just want to know if there are extension that can allow small basic to do HTTP post request, specifically with JSON bodies or custom headers?

OR if not, what would be possible work around? ( Hopefully not to complicated...)

Thanks for all the help.

Regards

Yumda
Reply
#2
Hi Yumda,

Fairly recently I added LDNetwork.SendWebRequest and LDNetwork.SendWebRequestAsync.  You can send an HTTP request and get back a response.  At the moment you would have to parse the JSON response in some way (its just a string).

Parsing JSON is a bit case dependent and a general parser implementation might be a bit beyond LD extension - is there something specific you are trying to do?

For example we use this with the 3D browser robot controller, see some of the examples there - https://litdev.uk/mybb/showthread.php?tid=223.
Reply
#3
I added few days back HTTP and a json lib using newtonsoft.json which could serialize and create basic json I will test it then publish
ZS
Reply
#4
Hi Litdev:

What I am trying to do is write a program to help my kids learn Japanese, including listening short passages.  I could do one word at a time and download the audio one by one, but that is a very slow way of doing it. however, if a program can do it in batch and automatically then it would be faster.

https://www.narakeet.com/app/text-to-aud...5af72bc1b4
https://www.narakeet.com/docs/automating/

the free site I found for this purpose are:

https://ttsmp3.com/text-to-speech/Japanese/

https://ttsmaker.com/

Not sure which site would fit with the existing extension...

there are other site which offer free as well, but it all require user input one world/sentences at a time and generate one by one.  An automation would be quicker...



Regards

Yumda
Reply
#5
Hi Yumda,

Interesting project - my initial thoughts.

1] I assume that you have the phrases already in Japanese, this is not a translation project as well.
2] I can't see any of the suggested links you gave that suggest that there may be a free API that can be called programatically.
3] Have you had a look at installing MS language packs - the advantage of downloading it to your PC is that it may be possible to interact wirthout web calls.

Narrator, Language packs,

Also look at LDSpeech and set culture with LDUtilities.CurrentCulture once Japanese is installed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)