Skip to main content

Unofficial Otter.ai Python API

Project description

otterai-py

Unofficial Python API for otter.ai

Note: This project is a fork of gmchad/otterai-api, as the original repository appears to be abandoned. Improvements and updates will be maintained here.

Contents

Installation

Install via pip:

pip install .[dev]

or in a virtual environment:

python3 -m venv env
source env/bin/activate
pip install .[dev]

Setup

from otterai import OtterAI
otter = OtterAI()
otter.login('USERNAME', 'PASSWORD')

APIs

User

Get user-specific data:

otter.get_user()

Speeches

Get all speeches.

Optional parameters: folder, page_size, source

otter.get_speeches()

Get a speech by ID:

otter.get_speech(OTID)

Query a speech:

otter.query_speech(QUERY, OTID)

Upload a speech.

Optional parameters: content_type (default: audio/mp4)

otter.upload_speech(FILE_NAME)

Download a speech.

Optional parameters: filename (default: id), format (default: all available formats (txt,pdf,mp3,docx,srt) as a zip file)

otter.download_speech(OTID, FILE_NAME)

Move a speech to the trash:

otter.move_to_trash_bin(OTID)

Set speech title:

otter.set_speech_title(OTID, TITLE)

TODO

  • Start a live speech
  • Stop a live speech
  • Assign a speaker to a speech transcript

Speakers

Get all speakers:

otter.get_speakers()

Create a speaker:

otter.create_speaker(SPEAKER_NAME)

Folders

Get all folders:

otter.get_folders()

Groups

Get all groups:

otter.list_groups()

Notifications

Get notification settings:

otter.get_notification_settings()

Exceptions

from otterai import OtterAIException

try:
    ...
except OtterAIException as e:
    ...

Contribution

To contribute to this project, follow these steps:

  1. Create a .env file in the root directory with the following content:

    OTTERAI_USERNAME=""
    OTTERAI_PASSWORD=""
    TEST_OTTERAI_SPEECH_OTID=""
    
    • Replace OTTERAI_USERNAME and OTTERAI_PASSWORD with your Otter.ai credentials.
    • Replace TEST_OTTERAI_SPEECH_OTID with the ID of a speech you create on Otter.ai. This is required for the tests to pass.
  2. To run the tests and the main.py file, execute the run.sh script:

    ./run.sh
    
  3. Ensure all tests pass and make necessary updates to the tests if you modify or add functionality.

  4. Submit a pull request with a clear description of your changes.

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

otterai_py-0.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otterai_py-0.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file otterai_py-0.0.1.tar.gz.

File metadata

  • Download URL: otterai_py-0.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for otterai_py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4bfc8325e9f03e3170c41eb1f002196030d64995b85f9adce1bdbed92100eb85
MD5 860d09dc1c76722c40e3d5215085b449
BLAKE2b-256 dd4bab12e5e736b1507f3f0a391d0b32a029c69cc2336f3984307f60bcf83e56

See more details on using hashes here.

File details

Details for the file otterai_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: otterai_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for otterai_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 423c5a61ae5ec58dfddbb1c88511996698581cade6702aeb1640988bc198b31b
MD5 08439589bd28e7e90906ecb7319020f5
BLAKE2b-256 42edb13e66e57eadb6d2a3663a4eb2f5f9b6c63ea50c388b3bd747038e29cc39

See more details on using hashes here.

Supported by

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