This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I keep getting this response from the transcriptions endpoint: | |
{"error":{"message":"Invalid file format. | |
Supported formats: ['m4a', 'mp3', 'webm', 'mp4', 'mpga', 'wav', 'mpeg']", | |
"type":"invalid_request_error","param":null,"code":null}} | |
# But the blob I'm uploading has type mp4... I think? Here is the blob's console output: | |
{"_data":{"size":252408,"offset":0,"blobId":"716D0789-6787-4D4B-A60E-72AE30483195","type":"video/mp4", | |
"name":"recording-734C56FB-EB50-45C1-86CE-027AC71257F4.mp4","__collector":{}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "game" | |
version = "0.1.0" | |
authors = ["maxwell"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
bevy = "0.1.2" # make sure this is the latest version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my.map <- function(l, f) { | |
ifelse(length(l) > 0, | |
append(f(l[[1]]), | |
my.map(l[-1], f)), | |
list()) | |
} | |
my.map(list(1,2,3), identity) # returns list(1); should return list(1,2,3) |