Skip to main content

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


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.1.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

VAPL-1.0.1-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file VAPL-1.0.1.tar.gz.

File metadata

  • Download URL: VAPL-1.0.1.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for VAPL-1.0.1.tar.gz
Algorithm Hash digest
SHA256 355cdf52d70cfcbcf4fafdad4fa3dda127305453176875d2ea61dd8b4d8fb723
MD5 6bb90331671f96fd0ecec267b4a3bf43
BLAKE2b-256 a5b600c4e1f5b21ab7a040dbaa8ea121cc0f41415ba947332cd53b0fcbff4273

See more details on using hashes here.

File details

Details for the file VAPL-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: VAPL-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for VAPL-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df63ff80c23a17a778283c1bf83053ac6b5d0590e754cc2809f7c83ab8fafa5c
MD5 211363ce63769785356d9e0c68bda112
BLAKE2b-256 3a78da6c9dfcebb62ed28c6e188b8d866111b8cdf0554ed6cc3c9064ce06a688

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page