CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = P8JZH34X63;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = whisper.objc/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = P8JZH34X63;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = whisper.objc/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@interface ViewController ()
-@property (weak, nonatomic) IBOutlet UILabel *labelStatusInp;
-@property (weak, nonatomic) IBOutlet UIButton *buttonToggleCapture;
-@property (weak, nonatomic) IBOutlet UIButton *buttonTranscribe;
+@property (weak, nonatomic) IBOutlet UILabel *labelStatusInp;
+@property (weak, nonatomic) IBOutlet UIButton *buttonToggleCapture;
+@property (weak, nonatomic) IBOutlet UIButton *buttonTranscribe;
@property (weak, nonatomic) IBOutlet UITextView *textviewResult;
@end
- (void)setupAudioFormat:(AudioStreamBasicDescription*)format
{
- format->mSampleRate = 16000;
+ format->mSampleRate = WHISPER_SAMPLE_RATE;
format->mFormatID = kAudioFormatLinearPCM;
format->mFramesPerPacket = 1;
format->mChannelsPerFrame = 1;
return ctx->vocab.token_beg;
}
-whisper_token whisper_token_translate() {
+whisper_token whisper_token_translate(void) {
return whisper_vocab::token_translate;
}
-whisper_token whisper_token_transcribe() {
+whisper_token whisper_token_transcribe(void) {
return whisper_vocab::token_transcribe;
}
model.memory_cross_k = ggml_new_tensor_1d(ctx, GGML_TYPE_F16, n_elements);
model.memory_cross_v = ggml_new_tensor_1d(ctx, GGML_TYPE_F16, n_elements);
}
-
- const size_t memory_size =
- ggml_nbytes(model.memory_k) + ggml_nbytes(model.memory_v) +
- ggml_nbytes(model.memory_cross_k) + ggml_nbytes(model.memory_cross_v);
}
}
return ctx->result_all[i_segment].tokens[i_token].p;
}
-const char * whisper_print_system_info() {
+const char * whisper_print_system_info(void) {
static std::string s;
s = "";
const int64_t t0 = segment.t0;
const int64_t t1 = segment.t1;
- const int s0 = timestamp_to_sample(t0, n_samples);
- const int s1 = timestamp_to_sample(t1, n_samples);
-
const int n = tokens.size();
if (n == 0) {
WHISPER_API whisper_token whisper_token_beg (struct whisper_context * ctx);
// Task tokens
- WHISPER_API whisper_token whisper_token_translate ();
- WHISPER_API whisper_token whisper_token_transcribe();
+ WHISPER_API whisper_token whisper_token_translate (void);
+ WHISPER_API whisper_token whisper_token_transcribe(void);
// Performance information
WHISPER_API void whisper_print_timings(struct whisper_context * ctx);
WHISPER_API float whisper_full_get_token_p(struct whisper_context * ctx, int i_segment, int i_token);
// Print system information
- WHISPER_API const char * whisper_print_system_info();
+ WHISPER_API const char * whisper_print_system_info(void);
#ifdef __cplusplus
}