Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simply run the program in a terminal window #2

Open
chrillek opened this issue Mar 7, 2022 · 1 comment
Open

Simply run the program in a terminal window #2

chrillek opened this issue Mar 7, 2022 · 1 comment

Comments

@chrillek
Copy link

chrillek commented Mar 7, 2022

I have no problems running the compiled (with debug enabled) binary from the command line. OTOH, I see a bunch of errors when building and running it in XCode (but it works there, too).

@anotherjesse
Copy link
Contributor

I was able to compile and run it on the CLI by doing:

% swiftc transcribe/main.swift
% ./main                      
{"isFinal":false,"text":"Hey"}
{"text":"This","isFinal":false}
{"text":"This is","isFinal":false}
{"text":"This is a test","isFinal":false}

I love that this works as a stream of json

I'm on Apple Silicon / MacOS 12.5.1 if that helps

Thanks!

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

No branches or pull requests

2 participants