diff --git a/README.md b/README.md index 1623cd0..113ebdd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,23 @@ # gtts-vlang Google Text-to-Speech support for The V Programming Language + +how to use: +```v +import gtts + +fn main(){ + gtts.save_to_file("Hello world", "en", "hello.mp3")! + // ↑ text ↑ language ↑ path +} + +``` + +for the language you need to use the ISO-639 code, +here is a small list:
+see the full list at: https://cloud.google.com/translate/docs/languages + + | Lenguaje | ISO-639 code | |-----------|-----------| | English | en |