VAPL - programming language to create voice assistants
Project description
VAPL - Voice Assistant programming language
STYLE
- VARIABLE -
var NAME = VALUE or EXPRESSION, STATEMENT - FUNCTION -
define NAME(PAR1, PAR2){ CODE } - print -
out: EXPRESSION or VALUE - one-line comment start -
%: TEXT - multiple-lines comments -
%= TEXT ... some lines ... this function... =% - builtIn modules that can be accessed using
#[NAME] > Import something > As something - for loop -
for ( var VARIABLE; ITERATOR ) { CODE } - while loop -
while ( STATEMENT ) { CODE } - if-then-else -
if(STATEMENT) (optional - then ) { CODE } - PATHS
- running functions and some other actions -
call: x+=1; test(x) - uses python evaluation - example
if(x==5 or x == -5) then {out: "x is equal to 5 or -5"}
ABOUT PATHS
- starts with /* and ends with */
- are basically list of instructions
- when path is activated it will run code after ;> ONLY ONE-LINE
- uses strings (WHEN TEXT IS IN BETWEEN '(' AND ')' IT CAN BE USED AS VARIABLE IN CODE)
- example:
var HELLO = "hello (NAME)"
/*
HELLO ;> out: "hello " + NAME + "!"
*/
Builtin modules:
- Web:
- redirect ( url ) - redirects to a website
- html ( HTML ) - runs html code
- tts ( text ) - TextToSpeech
HOW TO INSTALL
pip install VAPL
CODE EXAMPLE
main.py
import VAPL
Code = VAPL.Code('code.vapl', True)
web = VAPL.Web(False)
web.run('127.0.0.1', 81)
code.vapl
%: BuiltIn Module
#[VAPL.Modules.Web] > redirect, tts
%: WHEN USING Speech To text it will ignore the name and $ignore
%: But name will be displayed as title
$name = 'bob'
$ignore = ['']
out: f'Hello, I am {$name} Vapl.'
out: 'I am the voice assistant made in custom language.'
out: 'You can make me too!'
out: 'Search for VAPL in testpypi or pypi!'
out: ''
define spotify(){
call: tts('opening spotify')
call: redirect('https://open.spotify.com/collection/tracks')
}
/*
'hi' ;> call: tts(f'hi')
'goodbye' ;> call: tts('goodbye')
f'initialize {$name}' ;> call: tts(f'initializing {$name}')
'open spotify' ;> call: spotify()
*/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vapl-1.0.10.tar.gz
(39.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
vapl-1.0.10-py3-none-any.whl
(41.4 kB
view details)
File details
Details for the file vapl-1.0.10.tar.gz.
File metadata
- Download URL: vapl-1.0.10.tar.gz
- Upload date:
- Size: 39.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5136d3b4a9a89bbf3e3533df903e92beb319c90b81d585b539352b8692aa9c9
|
|
| MD5 |
d6581da15cefd43c7db955c797a58b4f
|
|
| BLAKE2b-256 |
925353b7dab2345fda50e55e64781c2363256fb4de9c4a6ef588248dfcfd481c
|
File details
Details for the file vapl-1.0.10-py3-none-any.whl.
File metadata
- Download URL: vapl-1.0.10-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06470564a0e4da2b29d0d42843fcefc3ce2c5b1e1a47b0498301d9e1fbedbe3b
|
|
| MD5 |
3b53ad4175501410232e3c75b1ff5455
|
|
| BLAKE2b-256 |
aeb4b11582def80d7aaa7a8f3dbaa4f034d8f8994cde34aacf124e1700a44fee
|