askbob package

Submodules

askbob.loop module

async askbob.loop.interactive_loop(args, config, responder: askbob.action.responder.ResponseService)

The main interactive loop for Ask Bob.

Parameters
  • args – CLI-provided arguments

  • config – config.ini runtime configuration provided parameters

  • responder (ResponseService) – The response service handling queries

askbob.loop.make_transcriber(config: dict, device: int, rate: int, filename: str, savepath: str)askbob.speech.transcriber.Transcriber

Makes a new transcriber instance from the parameters provided.

askbob.setup module

askbob.setup.setup(args: dict, main_config: dict)

Handles the CLI –setup flag by training Ask Bob and hence generating a Rasa model.

Parameters
  • args (dict) – The command-line arguments provided.

  • main_config (dict) – The main config.ini runtime configuration file.

askbob.util module

askbob.util.make_argument_parser() → argparse.ArgumentParser

Initialises the CLI argument parser.

Returns

the CLI argument parser

Return type

argparse.ArgumentParser

askbob.util.setup_logging() → None

Initialises logging for Ask Bob.

Module contents