Documentation ¶
Index ¶
- func Conclude(content string) (string, error)
- func SendMeetingConclusion(conclusion string, startTime, endTime time.Time) error
- func SendMessage(message string) error
- func TranscribeAudio(audioFilePath string) (string, error)
- func TranscribeConvertConclude(wavFileName, mp4FileName string, deleteWav, deleteMp4 bool) (string, error)
- type APIConfig
- type AsrResponse
- type AudioRecorder
- func (a *AudioRecorder) GetRecordedData() []byte
- func (a *AudioRecorder) GetRecordedDataTail(length time.Duration) ([]byte, error)
- func (a *AudioRecorder) InputDevices() ([]*portaudio.DeviceInfo, error)
- func (a *AudioRecorder) IsRecording() bool
- func (a *AudioRecorder) ListenForClapSoundToStopRecording(nClaps int, onRecordingStop func())
- func (a *AudioRecorder) RecordAudio(wavFileName string, maxRecord time.Duration, nClapsDetection int, ...) error
- func (a *AudioRecorder) RecordToFile(wavFilename string, maxDuration time.Duration, nClapDetection int, ...) error
- func (a *AudioRecorder) SaveTailToWav(length time.Duration, filename string) error
- func (a *AudioRecorder) SaveWav(filename string) error
- func (a *AudioRecorder) SetSelectedDevice(device *portaudio.DeviceInfo)
- func (a *AudioRecorder) StopRecording()
- func (a *AudioRecorder) Terminate()
- func (a *AudioRecorder) UserSelectsTheInputDevice() error
- func (a *AudioRecorder) WaitForRecordingToStop()
- type AudioResponse
- type OpenAIRequest
- type OpenAIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMeetingConclusion ¶
func SendMessage ¶
func TranscribeAudio ¶
TranscribeAudio can extract the text from .mp4, .wav or several different audio file types
Types ¶
type APIConfig ¶
type APIConfig struct { OpenAIKey string `toml:"openai_api_key"` SlackWebhook string `toml:"slack_webhook"` }
var Config APIConfig
global configuration
type AsrResponse ¶
type AsrResponse struct {
Transcript string `json:"transcript"`
}
type AudioRecorder ¶
type AudioRecorder struct { Recording bool StopRecordingCh chan struct{} // contains filtered or unexported fields }
func NewAudioRecorder ¶
func NewAudioRecorder() *AudioRecorder
func (*AudioRecorder) GetRecordedData ¶
func (a *AudioRecorder) GetRecordedData() []byte
func (*AudioRecorder) GetRecordedDataTail ¶
func (a *AudioRecorder) GetRecordedDataTail(length time.Duration) ([]byte, error)
func (*AudioRecorder) InputDevices ¶
func (a *AudioRecorder) InputDevices() ([]*portaudio.DeviceInfo, error)
func (*AudioRecorder) IsRecording ¶
func (a *AudioRecorder) IsRecording() bool
func (*AudioRecorder) ListenForClapSoundToStopRecording ¶
func (a *AudioRecorder) ListenForClapSoundToStopRecording(nClaps int, onRecordingStop func())
func (*AudioRecorder) RecordAudio ¶
func (*AudioRecorder) RecordToFile ¶
func (*AudioRecorder) SaveTailToWav ¶
func (a *AudioRecorder) SaveTailToWav(length time.Duration, filename string) error
SaveTailToWav saves the last N seconds of the audio buffer to file
func (*AudioRecorder) SaveWav ¶
func (a *AudioRecorder) SaveWav(filename string) error
func (*AudioRecorder) SetSelectedDevice ¶
func (a *AudioRecorder) SetSelectedDevice(device *portaudio.DeviceInfo)
func (*AudioRecorder) StopRecording ¶
func (a *AudioRecorder) StopRecording()
func (*AudioRecorder) Terminate ¶
func (a *AudioRecorder) Terminate()
func (*AudioRecorder) UserSelectsTheInputDevice ¶
func (a *AudioRecorder) UserSelectsTheInputDevice() error
func (*AudioRecorder) WaitForRecordingToStop ¶
func (a *AudioRecorder) WaitForRecordingToStop()
type AudioResponse ¶
type AudioResponse struct {
Text string `json:"text"`
}
type OpenAIRequest ¶
type OpenAIRequest struct { Model string `json:"model"` Messages []interface{} `json:"messages"` }
type OpenAIResponse ¶
Click to show internal directories.
Click to hide internal directories.