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
- 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 ;>
- 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 + "!"
*/
HOW TO INSTALL
pip install -i https://test.pypi.org/simple/ 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 = ['hej']
call: tts(f'Hello, I am {$name} Vapl.')
out: 'I am the voice assistant made in custom language.'
out: 'You can too!'
out: 'Search for VAPL in testpypi or pypi!'
out: ''
define spotify(){
call: tts('Otwieram spotify')
call: redirect('https://open.spotify.com/collection/tracks')
}
/*
'zdrastwujtie' ;> call: tts(f'zdrastwujtie')
'daswidania' ;> call: tts(f'daswidania')
f'inicjalizuj {$name}' ;> call: tts(f'initializacja programu {$name}')
'otwórz 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-0.0.115.tar.gz
(36.9 kB
view details)
Built Distribution
VAPL-0.0.115-py3-none-any.whl
(38.5 kB
view details)
File details
Details for the file VAPL-0.0.115.tar.gz
.
File metadata
- Download URL: VAPL-0.0.115.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 282b5c0d36c7a40cccb6a36027c68aa2705229fdbf0df77fd538cf6a1bba987d |
|
MD5 | 8bcc16f5f92cad6d12de59acb7d42dab |
|
BLAKE2b-256 | 2a6d323e83f74ebbac2e273e28c9fb2fb381c91863097e2fa9ef033fc80e3b1c |
File details
Details for the file VAPL-0.0.115-py3-none-any.whl
.
File metadata
- Download URL: VAPL-0.0.115-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12313ee3548e337373b414aad4726544e47aa58285ab04ed45e85c460cbe906b |
|
MD5 | e6b8df057c0e2d855d25ea56932ae1a2 |
|
BLAKE2b-256 | 0c628f0a3792494c0e8081628714ce2a85d21b6ea8194dfa9f374e2a388f03b6 |