Feb 5, 2024 19:53
@Kenster - if I'd read your post more carefully I'd have seen you mentioned home directory permissions, which turned out to be the problem (777 rather than 755). Since I made that change a year or two ago, I'm unable to explain why it just recently began to be a problem for ssh.
Feb 5, 2024 09:28
@Giacomo1968 -- calling your attention to my Update 3 to original question, which seems to have solved the problem.
Feb 5, 2024 09:28
@Kenster - thanks - I mistyped in my question. The perms indeed are, and have been, 700. Corrected.
Feb 5, 2024 09:28
@Giacomo1968 - thanks for your efforts! Will take another look in the morning -- including learning to read the verbose ssh output, and investigating ed25519 which sounds like a likely culprit.
Feb 5, 2024 09:28
@Giacomo1968 - 14.2.1 was applied Dec. 19. However, I note several more recent "XProtectPlistConfigData" Apple updates, the latest being Feb 1.
Feb 5, 2024 09:28
@Giacomo1968 - update#2 has been added. Problem still occurring after adding .ssh/config (mode 644).
Feb 5, 2024 09:28
@Giacomo1968 - don't remember when I applied 14.2.1. I ssh from Air to Pro multiple times a day, first saw problem yesterday and am pretty sure last OS update was more than a couple of days ago (any way to check?)
Feb 5, 2024 09:28
@Giacomo1968 - requested verbose mode output has been added to question.
Feb 5, 2024 09:28
I noticed earlier today that on the MacBook Air, the default for ssh-keygen is to generate an 'ed25519' public/private key pair by default now, rather than RSA. Wondering if this is relevant.
Feb 5, 2024 09:28
@Giacomo1968 - done (removed ~/.ssh/known_hosts file from Air). Still being prompted for password when ssh'ing into Pro.
 
Nov 29, 2023 16:58
Just tested with -f and with a heredoc. Both work fine.
Nov 28, 2023 21:57
I totally understand. It certainly defies the usual expectations for a command line tool.

Are you considering writing such a 'say' replacement? (That would be awesome.)
Nov 28, 2023 00:37
FYI, I just tried the following:
DYLD_INSERT_LIBRARIES=./mysay.dylib say -v Chap -f /Users/chap/private/paragraph.txt -e outputfilename.caf
No output spoken or written. Console streaming contained several clues:

com.apple.ttsasset catalog error 19:27:59.538085-0500 com.apple.SiriTTSService.TrialProxy Factor <private> does not have 9 components as expected.

com.apple.Accessibility AXTTSCommon error 19:27:59.602618-0500 say BFChannel plaintalk parser returned nothing for . Not speaking.

(Don't know if you support -f; assumed it would be passed through to say.)
Nov 27, 2023 14:23
Might also note that 'afconvert outputfilename.caf -f adts' will convert to outputfilename.aac with nearly 20:1 compression.
Nov 27, 2023 14:06
(Steps 1-3 are also needed for authorize_terminal to run)
Nov 27, 2023 14:03
At this point I usually find that Live Speech via say -v MyVoice ... is producing nothing but silence. I pull down the Live Speech menu, enter a word, and it produces silence. Enter a word again, it says it in the default system voice. Enter it a third time and it says it in my voice, and now the say -v command works correctly.
Nov 27, 2023 13:59
2. Shutdown and boot into Recovery mode.
3. From Terminal run: csrutil disable, then reboot.
Nov 27, 2023 13:56
1. From Terminal, run: sudo nvram boot-args="-arm64e_preview_abi amfi_get_out_of_my_way=0x1"
Nov 26, 2023 15:28
Question: currently the speech is sent to both the speakers (in real time) and to the -e file.caf, which slows the overall operation to that of speech. I don't see any say options (other than -o) that bypass the audio production; is there a way for this solution to render the sound file without concurrently speaking it?
Nov 26, 2023 15:10
Success on all counts! (Yes, am on Macbook Air 2020 M1.) This is great; thanks for all your efforts.
Nov 26, 2023 02:48
I tried to understand the difference between arm64 and arm64e but it's way beyond me, so don't assume I'm doing the right thing! :-)
Nov 26, 2023 02:37
Above was from DYLD_INSERT_LIBRARIES=./mysay.dylib say -v Chap "text to speak" -e path.caf
Nov 26, 2023 02:36
Useful? dyld[1760]: tried: './mysay.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64e', need '')), '/System/Volumes/Preboot/Cryptexes/OS./mysay.dylib' (no such file), './mysay.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64e', need '')),
Nov 26, 2023 02:35
Grepping nvram -p doesn't find 'boot-args', 'arm64e', or 'amfi'. I Booted into recovery mode and successfully issued csrutil disable, and rebooted. Still getting same results from ./authorize_terminal.
Nov 25, 2023 18:30
Scratch the above. Sound input setting was set to Transcriptions Text to Speech, hence it wasn't hearing anything. Set it back to Mac Mic and all is well for training.
Nov 25, 2023 17:54
(And of course I've restarted)
Nov 25, 2023 17:53
it seems to note that I've finished; the record button returns to its original state; and then nothing further happens: previously it would either complain of background noise, or proceed to record the first training sentence. I even created a new user and tried to create a personal voice, and the same thing happened.
Nov 25, 2023 17:53
Good q. re: your authorize tool running successfully at first. Here is some "FWIW" info: the training function of Personal Voice has stopped working: when I get to the point where it's checking for a quiet environment, it listens to me read the sentence;
Nov 25, 2023 00:10
(Transferred discussion to chat)
Nov 25, 2023 00:10
arch => arm64. Have rebuilt from github (but I'm definitely on M1 MBA). Have restarted (same experience w/random failures). say -v Chap Hello works correctly. Both authorize_terminal and DYLB say ... fail as before. Settings > Privacy&Security > Developer Tools > Terminal = allow/on. What have I missed?
Nov 25, 2023 00:10
Air$ ./authorize_terminal Killed: 9 Air:$ DYLD_INSERT_LIBRARIES=./mysay.dylib say -v Chap "text to speak" -e path.caf say: invalid option -- e Usage: say [-v voice] [-o out] [-f in | message] (Have already authorized byt wanted to show the kill 9) FWIW I use bash but also tried zsh.
Nov 25, 2023 00:10
We're getting slightly different results. I don't get any message in system.log about being unable to use Personal Voices, and it writes a 4.1K file that plays nothing. I dl'ed your code, built it, and tried to save some personal voice speech, but got the same 4.1K file. (Also, note typo in Makefile, -e should be -o)
 
Aug 29, 2017 11:57
@markp - that is certainly my preference. Without clear, complete, and unambiguous documentation about what will cause a deadlock, though, it's hard to know how! :-)
Aug 29, 2017 11:57
@markp - I don't know - I'm out of my depth here. I'm surprised it's so hard to get a definitive answer. I guess that, in lieu of any statement asserting that this statement is guaranteed not to deadlock, I have to code for that possibility and retry the transaction if it occurs.
Aug 29, 2017 11:57
@markp I hadn't really considered it, since the column in my example is indexed. But I see your point - clearly if they can't all be locked "quickly" they'd have to be locked separately. (Which is just my guess)
Aug 29, 2017 11:57
Not surprisingly, the above code deadlocks, because there are two threads that are acquiring two separate resources in the reverse order. The question is, when you execute the single statement SELECT FOR UPDATE..WHERE..IN(list), are you effectively acquiring a single "resource" (a row set) or many resources (multiple rows)? If you are effectively acquiring a single resource (all rows in the set in a single atomic operation), then no deadlock can occur. If you're getting multiple resources (each row separately, in unknown order), deadlock can occur. Seems like the latter is the case.
 

 /dev/chat

General discussion for unix.stackexchange.com. If you have a q...
Jul 10, 2014 16:21
@terdon Thanks for response, and - no problem :-)
Jul 9, 2014 15:00
@terdon - please consider replacing the phrase "formatting abuse" with "excessive formatting." Maybe it's just me, but the word "abuse" is not only "excessively" dramatic, but carries with it some serious, unnecessary connotations. Thanks. :)