Skip to content

Conversation

@foolmoron
Copy link

Adds flutter_sound lib

Apparently record does not support audio recording streams well on web, so I pulled this one in which does. It also has a nice API that works with Dart streams.

Creates websocket connection with Deepgram speech-to-text API using temp key from Choreo

See: https://github.com/pangeachat/2-step-choreographer/pull/490

Adds text widget to recording dialog that uses StreamBuilder

This uses the websocket connection and builds a string using the text responses from the Deepgram server (not well tested right now)

@wcjord
Copy link

wcjord commented Mar 10, 2025

@foolmoron I've run this with a locally running choreographer. it connects to the choregrapher which seems to return the needed key but the client throws some error. do you have everything you need to run the choreographer locally? we could also deploy the endpoint to our staging server without too much trouble.

@foolmoron
Copy link
Author

@foolmoron I've run this with a locally running choreographer. it connects to the choregrapher which seems to return the needed key but the client throws some error. do you have everything you need to run the choreographer locally? we could also deploy the endpoint to our staging server without too much trouble.

I did find how to get the local choreo working (there are 2 .env files that need the API URL changed) but yeah there's some client errors I haven't figured out. Do you think you could take a look and see if you can fix it faster than I could?

@wcjord
Copy link

wcjord commented Mar 11, 2025

@foolmoron Looking into it!

@wcjord
Copy link

wcjord commented Mar 11, 2025

@foolmoron Hey I just put 45 minutes into debugging. I looked for errors in the logic of the file itself and just tried commenting out various pieces to see where the issue might be coming from.

It's coming from this:

final audioRecorderStartFuture =
            await _audioRecorderStream!.startRecorder(
          toStream: streamBytes.sink,
          codec: Codec.pcm16,
          numChannels: 1,
          sampleRate: samplingRateTranscription,
          bitRate: samplingRateTranscription,
        );

I've got a meeting now. I think I'd need to go deep into FlutterSoundRecorder to see if there was some error in the setup sequence. That is my suspicion. Or maybe it's incompatible with AudioRecorder.

@foolmoron
Copy link
Author

@wcjord Hm ok, might need a bigger refactor to use just one recorder

@wcjord
Copy link

wcjord commented Mar 11, 2025

@foolmoron That would probably make sense.

ggurdin pushed a commit that referenced this pull request Aug 14, 2025
…ve_splash-2.4.6

build: (deps): bump flutter_native_splash from 2.4.4 to 2.4.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants