From 21bb54a541e6994d85d2237bbb485dcb35ce8618 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Wed, 15 Aug 2018 21:13:30 +0200 Subject: [PATCH] Basic server interface spec --- python-server/server_interface.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 python-server/server_interface.py diff --git a/python-server/server_interface.py b/python-server/server_interface.py new file mode 100644 index 0000000..4309786 --- /dev/null +++ b/python-server/server_interface.py @@ -0,0 +1,23 @@ +def reply_logs(loglevel=0,lines=100): + ''' replies with recent logs ''' + pass + +def reply_backend(backend=None): + ''' replies with current backend if None or sets the new one ''' + pass + +def reply_files(after=None, before=None, regex=None): + ''' replies with a list of transcribed or to be transcribed files ''' + +def reply_transcript(filename=None): + ''' replies with the latest transcript or the transcript of the chosen name ''' + pass + +def reply_audio(filename=None): + ''' replies with the chosen audio as a file ''' + pass + +def recive_transcribe_request(audiofile): + ''' saves and transcribes and audiofile ''' + pass +